aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1787778 - /aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java
Date Mon, 20 Mar 2017 14:18:05 GMT
Author: gnodet
Date: Mon Mar 20 14:18:05 2017
New Revision: 1787778

URL: http://svn.apache.org/viewvc?rev=1787778&view=rev
Log:
[ARIES-1700] Possible NPE

Modified:
    aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java

Modified: aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java?rev=1787778&r1=1787777&r2=1787778&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java
(original)
+++ aries/trunk/blueprint/blueprint-noosgi/src/main/java/org/apache/aries/blueprint/container/NoOsgiRecipeBuilder.java
Mon Mar 20 14:18:05 2017
@@ -232,7 +232,7 @@ public class NoOsgiRecipeBuilder {
             IdRefRecipe rnr = new IdRefRecipe(getName(null), componentName);
             return rnr;
         } else {
-            throw new IllegalStateException("Unsupported value: " + v.getClass().getName());
+            throw new IllegalStateException("Unsupported value: " + (v != null ? v.getClass().getName()
: "null"));
         }
     }
 



Mime
View raw message