felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1449672 - /felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
Date Mon, 25 Feb 2013 12:01:47 GMT
Author: cziegeler
Date: Mon Feb 25 12:01:47 2013
New Revision: 1449672

URL: http://svn.apache.org/r1449672
Log:
FELIX-3917 :  Potential NPE if bind/unbind method can't be found during validation 

Modified:
    felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java

Modified: felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java?rev=1449672&r1=1449671&r2=1449672&view=diff
==============================================================================
--- felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
(original)
+++ felix/trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
Mon Feb 25 12:01:47 2013
@@ -608,6 +608,9 @@ public class Validator {
                 }
             }
 
+            if ( method == null ) {
+                return null;
+            }
             final MethodResult result = new MethodResult();
             result.method = method;
             result.requiredSpecVersion = requiredVersion;



Mime
View raw message