geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnx...@apache.org
Subject svn commit: r1311135 - /geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Date Mon, 09 Apr 2012 06:11:37 GMT
Author: johnxiao
Date: Mon Apr  9 06:11:37 2012
New Revision: 1311135

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

Modified:
    geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java

Modified: geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java?rev=1311135&r1=1311134&r2=1311135&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
(original)
+++ geronimo/server/trunk/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ApplicationGBean.java
Mon Apr  9 06:11:37 2012
@@ -453,7 +453,8 @@ 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>();
         
         for(ExportedPackage ePackage : ePackages) {



Mime
View raw message