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;