Task #11286 (closed)
Bug: NPE when Flex files are missing FilterSets
Reported by: | omero-qa | Owned by: | mlinkert |
---|---|---|---|
Priority: | minor | Milestone: | Unscheduled |
Component: | from QA | Version: | 4.4.8 |
Keywords: | n.a. | Cc: | hanson_jeffrey_c@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | n.a. |
Description
https://www.openmicroscopy.org/qa2/qa2/qa/feedback/7469/
Comment: Example Flex file that I couldn't read in FIJI as per email sent to listserver earlier today...
The exception thrown is:
Exception in thread "main" java.lang.NullPointerException at loci.formats.in.FlexReader.populateMetadataStore(FlexReader.java:617) at loci.formats.in.FlexReader.initFlexFile(FlexReader.java:494) at loci.formats.in.FlexReader.initFile(FlexReader.java:326) at loci.formats.FormatReader.setId(FormatReader.java:1333) at loci.formats.ImageReader.setId(ImageReader.java:762) at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:564) at loci.formats.tools.ImageInfo.testRead(ImageInfo.java:1017) at loci.formats.tools.ImageInfo.main(ImageInfo.java:1062)
Fixing the NPE itself is easy enough, but we should also check why the FilterSet? data isn't found.
Change History (2)
comment:1 Changed 11 years ago by mlinkert
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 10 years ago by jmoore <josh@…>
- Remaining Time set to 0
(In [84fb6deb4cf0f43b1c7cfeee3d17a6174d9632ce/ome.git] on branch develop) Fix ClassCastException? in AttributeSet? (Fix #11286)
The helper getAttributeSortedStringSet fails loudly on
properties which are not strings. Instead we get each
object and do our best to convert it into a String.
Fixed with: https://github.com/openmicroscopy/bioformats/pull/777