Author: gnodet
Date: Wed Feb 11 08:07:44 2009
New Revision: 743268

URL: http://svn.apache.org/viewvc?rev=743268&view=rev
Log:
SMX4KNL-181: osgi/install -s throws a NPE if the bundle can not be resolved

Modified:
    
servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/InstallBundle.java

Modified: 
servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/InstallBundle.java
URL: 
http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/InstallBundle.java?rev=743268&r1=743267&r2=743268&view=diff
==============================================================================
--- 
servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/InstallBundle.java
 (original)
+++ 
servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/InstallBundle.java
 Wed Feb 11 08:07:44 2009
@@ -39,8 +39,8 @@
         StringBuffer sb = new StringBuffer();
         for (String url : urls) {
             Bundle bundle = install(url, io.out, io.err);
-            bundles.add(bundle);
             if (bundle != null) {
+                bundles.add(bundle);
                 if (sb.length() > 0) {
                     sb.append(", ");
                 }


Reply via email to