You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2014/06/04 11:46:01 UTC

svn commit: r1600069 - /sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java

Author: stefanegli
Date: Wed Jun  4 09:46:01 2014
New Revision: 1600069

URL: http://svn.apache.org/r1600069
Log:
SLING-3568 related: paranoid NPE check

Modified:
    sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java

Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java?rev=1600069&r1=1600068&r2=1600069&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java (original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java Wed Jun  4 09:46:01 2014
@@ -326,6 +326,9 @@ public class ImportRepositoryContentActi
     }
 
     private void createFile(IProject project, IPath path, byte[] node) throws CoreException {
+        if (node==null) {
+            throw new IllegalArgumentException("node must not be null");
+        }
 
         IFile destinationFile = project.getFile(path);