-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FixImagePath NPE on NewMastodonProject from ImageOpenedInImageJ #228
Labels
Comments
(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. |
|
I can.... It breaks here, I would solve it by adding a guarding-test before that line, e.g.,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...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).The text was updated successfully, but these errors were encountered: