geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnx...@apache.org
Subject svn commit: r1311129 - /geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Date Mon, 09 Apr 2012 04:37:14 GMT
Author: johnxiao
Date: Mon Apr  9 04:37:14 2012
New Revision: 1311129

URL: http://svn.apache.org/viewvc?rev=1311129&view=rev
Log:
Avoid NullPointerException when deploy EBA

Modified:
    geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java

Modified: geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java?rev=1311129&r1=1311128&r2=1311129&view=diff
==============================================================================
--- geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
(original)
+++ geronimo/server/branches/3.0-beta/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Mon Apr  9 04:37:14 2012
@@ -453,6 +453,7 @@ public class ApplicationGBean implements
     @SuppressWarnings("deprecation")
     private Bundle[] getRequiringBundles(Bundle targetBundle, PackageAdmin packageAdmin)
{
         ExportedPackage[] ePackages = packageAdmin.getExportedPackages(targetBundle);
+        if(ePackages == null || ePackages.length == 0) return new Bundle[]{};
         
         Set<Bundle> requiringBundles = new HashSet<Bundle>();
         



Mime
View raw message