Skip to content

Commit

Permalink
Fixes #6380
Browse files Browse the repository at this point in the history
---
 Signed-off-by: github-actions <[email protected]>

Signed-off-by: github-actions <[email protected]>
  • Loading branch information
github-actions committed Dec 2, 2024
1 parent abad56e commit 996c79d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bndtools.core/src/bndtools/editor/BndEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
import aQute.bnd.help.instructions.ResolutionInstructions.ResolveMode;
import aQute.bnd.osgi.Processor;
import aQute.bnd.properties.BadLocationException;
import biz.aQute.resolve.Bndrun;
import bndtools.Plugin;
import bndtools.central.Central;
import bndtools.editor.common.IPriority;
Expand Down Expand Up @@ -617,10 +618,12 @@ private Promise<Workspace> loadEditModel(File inputFile, BndEditModel model) thr

Processor p = workspace.readLocked(() -> workspace.findProcessor(inputFile)
.orElseGet(() -> {
Processor dummy = new Processor();
dummy.setBase(inputFile.getParentFile());
dummy.setPropertiesFile(inputFile);
return dummy;
try {
Bndrun bndrun = Bndrun.createBndrun(workspace, inputFile);
return bndrun;
} catch (Exception e) {
throw Exceptions.duck(e);
}
}));
model.setWorkspace(workspace);
model.setOwner(p);
Expand Down

0 comments on commit 996c79d

Please sign in to comment.