commit | 63bf7cf370c8ba1f2722b4f1a440077933b2945f | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Mon Feb 25 12:01:47 2013 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Mon Feb 25 12:01:47 2013 +0000 |
tree | 21fc51b13888086caab71c485db571906349015d | |
parent | 43ffb937d58894387b5a940c4626080e16f862b4 [diff] |
FELIX-3917 : Potential NPE if bind/unbind method can't be found during validation git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1449672 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java index 1eff278..529e280 100644 --- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java +++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
@@ -608,6 +608,9 @@ } } + if ( method == null ) { + return null; + } final MethodResult result = new MethodResult(); result.method = method; result.requiredSpecVersion = requiredVersion;