felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r925367 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java
Date Fri, 19 Mar 2010 18:24:02 GMT
Author: gnodet
Date: Fri Mar 19 18:24:02 2010
New Revision: 925367

URL: http://svn.apache.org/viewvc?rev=925367&view=rev
Log:
[bundleplugin] fix possible NPE when installing non osgi bundles artifacts

Modified:
    felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java?rev=925367&r1=925366&r2=925367&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java (original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrUpdate.java Fri Mar
19 18:24:02 2010
@@ -168,6 +168,10 @@ public class ObrUpdate
             try
             {
                 m_resourceBundle = (ResourceImpl) new DataModelHelperImpl().createResource(
bundleJar.toURL() );
+                if (m_resourceBundle == null)
+                {
+                    return;
+                }
             }
             catch (IOException e)
             {



Mime
View raw message