felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r916031 - /felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
Date Wed, 24 Feb 2010 22:56:38 GMT
Author: dsavage
Date: Wed Feb 24 22:56:38 2010
New Revision: 916031

URL: http://svn.apache.org/viewvc?rev=916031&view=rev
Log:
tidy up npe for project bundles

Modified:
    felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java

Modified: felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java?rev=916031&r1=916030&r2=916031&view=diff
==============================================================================
--- felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
(original)
+++ felix/trunk/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
Wed Feb 24 22:56:38 2010
@@ -114,12 +114,14 @@
 
     private void updateManifest(IPath location) throws IOException
     {
-        JarFile f = new JarFile(location.toFile());
-        try {
-            setBundleInfo(ManifestUtil.buildBundleModelElement(f.getManifest()));
-        }
-        finally {
-            f.close();
+        if ( location != null ) {
+            JarFile f = new JarFile(location.toFile());
+            try {
+                setBundleInfo(ManifestUtil.buildBundleModelElement(f.getManifest()));
+            }
+            finally {
+                f.close();
+            }
         }
     }
 



Mime
View raw message