You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2014/05/13 17:11:35 UTC

svn commit: r1594242 - /sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java

Author: rombert
Date: Tue May 13 15:11:34 2014
New Revision: 1594242

URL: http://svn.apache.org/r1594242
Log:
SLING-3122 - Incorrect filtering for full coverage nodes

ProjectAdapter - reject empty input streams.

Modified:
    sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java

Modified: sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java?rev=1594242&r1=1594241&r2=1594242&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java (original)
+++ sling/trunk/tooling/ide/eclipse-test/src/org/apache/sling/ide/test/impl/helpers/ProjectAdapter.java Tue May 13 15:11:34 2014
@@ -112,6 +112,10 @@ public class ProjectAdapter {
 
     public void createOrUpdateFile(IPath fromPortableString, InputStream resourceAsStream) throws CoreException {
 
+        if (resourceAsStream == null) {
+            throw new IllegalArgumentException("resourceAsStream may not be null");
+        }
+
         IContainer current = project;
 
         for (int i = 0; i < fromPortableString.segmentCount() - 1; i++) {