felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r1350986 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java
Date Sat, 16 Jun 2012 19:16:48 GMT
Author: rickhall
Date: Sat Jun 16 19:16:47 2012
New Revision: 1350986

URL: http://svn.apache.org/viewvc?rev=1350986&view=rev
Log:
Return null from PackageAdmin if bundle has no exported packages. (FELIX-3353)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java?rev=1350986&r1=1350985&r2=1350986&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/PackageAdminImpl.java Sat
Jun 16 19:16:47 2012
@@ -156,7 +156,8 @@ public class PackageAdminImpl implements
     **/
     public ExportedPackage[] getExportedPackages(Bundle bundle)
     {
-        return m_felix.getExportedPackages(bundle);
+        ExportedPackage[] pkgs = m_felix.getExportedPackages(bundle);
+        return ((pkgs == null) || pkgs.length == 0) ? null : pkgs;
     }
 
     public Bundle[] getFragments(Bundle bundle)



Mime
View raw message