Skip to content
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

Fixes a NPE when omeroAnnotations do not contain the pixelsID key #120

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

NicoKiaru
Copy link
Contributor

I encounteered a NPE when trying to open an image by using imagej-omero on our omero server. I experienced this issue both in the IDE and within an up-to-date Fiji.

This is a fix that prevents the NPE. The image is then opened fine. This fix prevents the NPE to occur and allows to open the image. But I do not now if it is the right fix: maybe these omeroAnnotations should always be non-empty with the requested pixelsID`. @hinerm what's your opinion on this ?

@NicoKiaru NicoKiaru requested a review from hinerm October 5, 2023 13:56
@hinerm hinerm merged commit a8994a0 into master Oct 5, 2023
1 check passed
@hinerm
Copy link
Member

hinerm commented Oct 5, 2023

@hinerm what's your opinion on this ?

@NicoKiaru I don't know for sure but the expectation that the annotations could be empty for a given pixelsID seems reasonable to me, so this defensive check feels appropriate.

@hinerm hinerm deleted the fix-loadannotations-npe branch October 5, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants