commit | 16bcf90237d9540bf7870ccc38d5cfeb0ff307ea | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Aug 22 06:11:34 2007 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Aug 22 06:11:34 2007 +0000 |
tree | d8f7ec6c5cb89d5914edc977b0683322d74eeb44 | |
parent | 2d38430a52d3f9a36e274b6480ec9b090966d278 [diff] |
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) {