Fixed small bug in the getExportedPackages().

git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@376285 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
index 6e2c35d..f1c0837 100644
--- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -2558,7 +2558,7 @@
         IModule[] exporters = m_policyCore.getInUseExporters(new R4Import(name, null, null));
         if (exporters != null)
         {
-            pkgs = new ExportedPackage[pkgs.length];
+            pkgs = new ExportedPackage[exporters.length];
             for (int pkgIdx = 0; pkgIdx < pkgs.length; pkgIdx++)
             {
                 // Get the bundle associated with the current exporting module.