Prevent NPE if a component to be validated does is not a service

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@568434 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java
index 1956778..51c5e91 100644
--- a/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java
+++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java
@@ -224,7 +224,9 @@
                     }
 
                     // verify service
-                    this.getService().validate(issues, warnings);
+                    if (this.getService() != null) {
+                        this.getService().validate(issues, warnings);
+                    }
 
                     // serviceFactory must not be true for immediate of component factory
                     if (this.isServiceFactory() && this.isImmediate() != null && this.isImmediate().booleanValue() && this.getFactory() != null) {