Author: cziegeler
Date: Fri Sep 18 09:24:28 2015
New Revision: 1703788

URL: http://svn.apache.org/viewvc?rev=1703788&view=rev
Log:
FELIX-5039 : Component getServices method does not return null anymore. Apply 
patch from Pierre De Rop

Modified:
    felix/trunk/scr-compat/changelog.txt
    
felix/trunk/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java

Modified: felix/trunk/scr-compat/changelog.txt
URL: 
http://svn.apache.org/viewvc/felix/trunk/scr-compat/changelog.txt?rev=1703788&r1=1703787&r2=1703788&view=diff
==============================================================================
--- felix/trunk/scr-compat/changelog.txt (original)
+++ felix/trunk/scr-compat/changelog.txt Fri Sep 18 09:24:28 2015
@@ -1,3 +1,9 @@
+Changes from 1.0.2 to 1.0.4
+---------------------------
+** Bug
+    * [FELIX-5039] Component getServices method does not return null anymore
+
+
 Changes from 1.0.0 to 1.0.2
 ---------------------------
 ** Bug

Modified: 
felix/trunk/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java?rev=1703788&r1=1703787&r2=1703788&view=diff
==============================================================================
--- 
felix/trunk/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
 (original)
+++ 
felix/trunk/scr-compat/src/main/java/org/apache/felix/scr/impl/compat/ScrServiceImpl.java
 Fri Sep 18 09:24:28 2015
@@ -219,7 +219,7 @@ public class ScrServiceImpl implements S
 
         public String[] getServices()
         {
-            return this.description.serviceInterfaces;
+            return this.description.serviceInterfaces.length == 0 ? null : 
this.description.serviceInterfaces;
         }
 
         public Dictionary getProperties()


Reply via email to