Skip to content

Commit

Permalink
Merge pull request #6076 from pkriens/feature/propertykey
Browse files Browse the repository at this point in the history
NPE prevention
  • Loading branch information
pkriens authored Apr 9, 2024
2 parents 35a6ea7 + ac43e6c commit f1cb90b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions biz.aQute.bndlib/src/aQute/bnd/build/model/BndEditModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ public BndEditModel(Project bndrun) throws IOException {
* Workspace/Project/sub bnd files files
*/
Processor getOwner() {
if (bndrun == null)
return new Processor();

File propertiesFile = bndrun.getPropertiesFile();
if (!propertiesFile.getName()
.endsWith(".bnd"))
Expand Down

0 comments on commit f1cb90b

Please sign in to comment.