commit | f468f1cfd950c401229a75c41a285023bcc0f003 | [log] [tgz] |
---|---|---|
author | David Jencks <djencks@apache.org> | Tue Sep 11 17:24:42 2012 +0000 |
committer | David Jencks <djencks@apache.org> | Tue Sep 11 17:24:42 2012 +0000 |
tree | bdf4fbc6276eadf4ccc58a018ffd2072ece2a597 | |
parent | 94adbf200d0e0d63345408bedaa4642513399c8d [diff] |
FELIX-3657 fix NPE from management interface when querying non-active components git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1383485 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java index ce0326d..bf8a5b7 100644 --- a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java +++ b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
@@ -770,6 +770,10 @@ private ServiceReference[] getBoundServiceReferences() { Map dependencyMap = m_componentManager.getDependencyMap(); + if ( dependencyMap == null ) + { + return null; + } Map bound = ( Map ) dependencyMap.get( this ); if ( bound.isEmpty() ) {