commit | 62bf2e4192a9b7a1cd6041b2e378230987833257 | [log] [tgz] |
---|---|---|
author | David Morgan Spenser Savage <dsavage@apache.org> | Wed Feb 17 21:36:51 2010 +0000 |
committer | David Morgan Spenser Savage <dsavage@apache.org> | Wed Feb 17 21:36:51 2010 +0000 |
tree | 1737cbc2c6c01cf8c540678f184e4f5735f3dc17 | |
parent | f668f68e04320723b7381294cd7f540c49c1156e [diff] |
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; }