Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11286 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

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.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.64370 sec.)

We're Hiring!