Skip to content

Commit

Permalink
Merge pull request #9 from sbesson/image_format_npe
Browse files Browse the repository at this point in the history
Add null check for image.getFormat()
  • Loading branch information
sbesson authored May 20, 2024
2 parents 543d061 + edaa976 commit 6279578
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected ZarrPixelBuffer createOmeNgffPixelBuffer(Pixels pixels) {
String uri = getUri(image);
if (uri == null) {
// Quick exit if we think we're OME-NGFF but there is no URI
if ("OMEXML".equals(image.getFormat().getValue())) {
if (image.getFormat() != null && "OMEXML".equals(image.getFormat().getValue())) {
throw new LockTimeout("Import in progress.", 15*1000, 0);
}
log.debug("No OME-NGFF root");
Expand Down

0 comments on commit 6279578

Please sign in to comment.