aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1723025 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java
Date Tue, 05 Jan 2016 09:42:09 GMT
Author: gnodet
Date: Tue Jan  5 09:42:09 2016
New Revision: 1723025

URL: http://svn.apache.org/viewvc?rev=1723025&view=rev
Log:
Fix possible NPE

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java?rev=1723025&r1=1723024&r2=1723025&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java
(original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/RecipeBuilder.java
Tue Jan  5 09:42:09 2016
@@ -352,7 +352,7 @@ public class RecipeBuilder {
             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