Skip to content

Commit

Permalink
Merge pull request #6097 from pkriens/issue/6096-quickfix-npe
Browse files Browse the repository at this point in the history
NPE in Add to -buildpath Quickfix.
  • Loading branch information
pkriens authored Apr 23, 2024
2 parents 1c27e12 + e8a3d2a commit b959047
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 b959047

Please sign in to comment.