NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1780 (closed defect: fixed)

Opened 2013-04-05T13:23:11-05:00

Last modified 2013-04-05T13:30:52-05:00

Cannot load sample images

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b7-ndim-data
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1563

Description

After recent changes I can no longer load any sample images without an exception being thrown. The image loads but does not draw correctly (because the exception aborts the display refresh I believe). Zoomin in afterwards draws okay. The exception is a NPE in the OverlyHarmonizer class.

Change History

comment:1 Changed 2013-04-05T13:30:52-05:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

It turns out that OverlayHarmonizer was initializing service references itself internally. The LegacyService did not know these services were required for initialization. It was possible to initialize a service to null. ANd referencing it later caused an NPE.

Fixed with commit c97900f529bacfbbb3ce103c2d29dc5f68361f96