tidy up npe for project bundles


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@916031 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java b/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
index 00ebcd1..1c08187 100644
--- a/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
+++ b/sigil/common/core/src/org/apache/felix/sigil/core/internal/model/eclipse/SigilBundle.java
@@ -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();
+            }
         }
     }