Skip to content

Commit

Permalink
NPE in Add to -buildpath Quickfix. Fixes #6096
Browse files Browse the repository at this point in the history
---
 Signed-off-by: Peter Kriens <Peter.Kriens@aQute.biz>

Signed-off-by: Peter Kriens <Peter.Kriens@aQute.biz>
  • Loading branch information
pkriens committed Apr 23, 2024
1 parent 1c27e12 commit e8a3d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biz.aQute.bndlib/src/aQute/bnd/build/model/BndEditModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ public BndEditModel(IDocument document) throws IOException {
public BndEditModel(Workspace workspace, Processor processor) throws IOException {
this(workspace);
this.owner = processor;
File propertiesFile = processor.getPropertiesFile();
if (propertiesFile.isFile())
this.document = new Document(IO.collect(propertiesFile));
this.inputFile = processor.getPropertiesFile();
if (inputFile != null && inputFile.isFile())
this.document = new Document(IO.collect(inputFile));
else
this.document = new Document("");
loadFrom(this.document);
Expand Down

0 comments on commit e8a3d2a

Please sign in to comment.