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 #1589 (closed defect: fixed)

Opened 2012-12-05T14:11:12-06:00

Last modified 2012-12-05T14:24:24-06:00

Display @Parameter loading needs to be updated

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b6-legacy
Component: Core Version:
Severity: serious Keywords:
Cc: curtis Blocked By:
Blocking: #1574

Description

Open boats. Run Analyze > Measure. An IJ2 TableDisplay opens showing the ResultsTable. Now run Image > Color > Show LUT As Table. An exception is thrown (below).

The issue is that there are now multiple kinds of displays (more accessible now that results table synchronization is in place). So the active display may be a TableDisplay. And the ShowLUTAsTable plugin expects an @Parameter of the active ImageDisplay where it is set to null. We now need the plugin parameter preprocessing populator to query the active display based upon asking for the specific class of the desired display. All the machinery should be in place to do this.

java.lang.NullPointerException

at imagej.core.commands.display.ShowLUTAsTable.run(ShowLUTAsTable.java:82)
at imagej.command.CommandModule.run(CommandModule.java:161)
at imagej.module.ModuleRunner.run(ModuleRunner.java:159)
at imagej.module.ModuleRunner.call(ModuleRunner.java:121)
at imagej.module.ModuleRunner.call(ModuleRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Change History

comment:1 Changed 2012-12-05T14:17:51-06:00 by bdezonia

  • Blocking 1574 added

comment:2 Changed 2012-12-05T14:24:24-06:00 by curtis

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

Fixed in 464a83e1.