sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1573742 - /sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java
Date Mon, 03 Mar 2014 20:43:37 GMT
Author: stefanegli
Date: Mon Mar  3 20:43:36 2014
New Revision: 1573742

URL: http://svn.apache.org/r1573742
Log:
SLING-2945 : checking early for resource==null

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java?rev=1573742&r1=1573741&r2=1573742&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/common/View.java
Mon Mar  3 20:43:36 2014
@@ -49,6 +49,9 @@ public class View {
     private final Resource resource;
 
     public View(final Resource resource) {
+        if (resource == null) {
+            throw new IllegalArgumentException("resource must not be null");
+        }
         this.resource = resource;
     }
 



Mime
View raw message