Catch npe if -bundles not set

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@911180 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/project/SigilProject.java b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/project/SigilProject.java
index c1d1cd9..5bcc899 100644
--- a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/project/SigilProject.java
+++ b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/project/SigilProject.java
@@ -522,6 +522,11 @@
         {
             bldProject = BldFactory.getProject( uri, true );
             ISigilBundle bundle = bldProject.getDefaultBundle();
+            
+            if ( bundle == null ) {
+                throw SigilCore.newCoreException("No default bundle", null);
+            }
+            
             bundle.setParent( this );
             return bundle;
         }