You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2007/08/22 08:11:35 UTC

svn commit: r568434 - /felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java

Author: fmeschbe
Date: Tue Aug 21 23:11:34 2007
New Revision: 568434

URL: http://svn.apache.org/viewvc?rev=568434&view=rev
Log:
Prevent NPE if a component to be validated does is not a service

Modified:
    felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java

Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java?rev=568434&r1=568433&r2=568434&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java (original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/om/Component.java Tue Aug 21 23:11:34 2007
@@ -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) {