Skip to content
Snippets Groups Projects
Commit eed74bd3 authored by tpylak's avatar tpylak
Browse files

LMS-2526 better error message

SVN: 23101
parent 2cedd4bb
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,10 @@ public class ImageJReaderLibrary implements IImageReaderLibrary
{
AdapterIInputStreamToInputStream is = new AdapterIInputStreamToInputStream(handle);
ImagePlus imagePlus = new Opener().openTiff(is, "");
if (imagePlus == null)
{
throw new IllegalStateException("Cannot open the image file with ImageJ.");
}
return createBufferedImageOfSameType(imagePlus);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment