FELIX-5016 : [scr.compat] ScrServiceImpl.getComponents() returns no components

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1698171 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java b/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
index f870078..a641d82 100644
--- a/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
+++ b/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
@@ -76,7 +76,7 @@
     {
         List<Component> result = new ArrayList<Component>();
 
-        final Collection<ComponentDescriptionDTO> descriptions = this.runtime.getComponentDescriptionDTOs(bundle);
+        final Collection<ComponentDescriptionDTO> descriptions = (bundle == null ? this.runtime.getComponentDescriptionDTOs() : this.runtime.getComponentDescriptionDTOs(bundle));
         for(final ComponentDescriptionDTO descDTO : descriptions )
         {
             final Collection<ComponentConfigurationDTO> configs = this.runtime.getComponentConfigurationDTOs(descDTO);