Skip to content

Possible use of readers with null id #14

Description

@hinerm

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions