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

Possible use of readers with null id #14

Open
hinerm opened this issue Apr 10, 2014 · 0 comments
Open

Possible use of readers with null id #14

hinerm opened this issue Apr 10, 2014 · 0 comments
Labels

Comments

@hinerm
Copy link
Member

hinerm commented Apr 10, 2014

Reported by Michael Meuli:

Problem encoutered while reading image file : single-channel.ome.tif

itk::ExceptionObject (0x81520e0)
Location: "unknown"
File: /home/michael/Colocalization/ITK-4.5.1-build/Modules/Remote/SCIFIO
/src/itkSCIFIOImageIO.cxx
Line: 180
Description: itk::ERROR: SCIFIOImageIO(0x8150fb0): SCIFIOImageIO
exited abnormally. Exception in thread "main"
java.lang.IllegalStateException: ImageReader.getSeries: Current file
should not be null; call setId(String) first
at loci.formats.FormatTools.assertId(FormatTools.java:724)
at loci.formats.ImageReader.getReader(ImageReader.java:200)
at loci.formats.ImageReader.getSeries(ImageReader.java:441)
at loci.formats.ReaderWrapper.getSeries(ReaderWrapper.java:343)
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:116)
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:108)
at loci.scifio.itk.SCIFIOITKBridge.waitForInput(SCIFIOITKBridge.java:83)
at loci.scifio.itk.SCIFIOITKBridge.executeCommand(SCIFIOITKBridge.java:161)
at loci.scifio.itk.SCIFIOITKBridge.main(SCIFIOITKBridge.java:693)

There could be an issue where the reader can be constructed with a null id, and then its getSeries method checked. Should probably at least check if the current file is null before checking the series...

@hinerm hinerm added the bug label Apr 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant