Closed xulman closed 8 months ago
(I apparently cannot assign the issue to myself, nor can I give it a label... but I'm okay with that, just FYI)
How do you reproduce this bug? I have no error message when creating a project from an ImagePlus.
Ahhhhhh I missed the last part.
Indeed:
Do you want to work on it?
I can....
It breaks here, I would solve it by adding a guarding-test before that line, e.g.,
if (project == null || project.getProjectRoot() == null) {
code to create a different dialog content -- a content that informs
that it cannot be fixing a path in a project when there's no project created yet
}
...likely because there exists no project's xml yet
The c'tor at L107 should be more smarter and test if it has gotten non-null project reference.
And if it got
null
ref, show a new dialog "sorry, no project yet, please save it first" (or alike) and avoid throwing NPE because indeed the issue is gone after the project is saved (tested myself).