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

Opened 2012-02-09T15:00:25-06:00

Last modified 2012-05-18T12:23:58-05:00

Image > Color > Show LUT exceptions out

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b2-bugfixes
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

Open Boats and run Image > Color > Show LUT. The following exception is thrown:

[ERROR] ImageJ 1.x plugin threw exception
java.lang.NullPointerException

at ij.plugin.filter.LutViewer.run(LutViewer.java:43)
at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:256)
at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:105)
at ij.IJ.runPlugIn(IJ.java:158)
at ij.IJ.runPlugIn(IJ.java:139)
at imagej.legacy.plugin.LegacyPlugin.run(LegacyPlugin.java:148)
at imagej.ext.plugin.PluginModule.run(PluginModule.java:150)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:148)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.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-02-09T16:07:31-06:00 by bdezonia

Note that on line #42 of LutViewer.run() apparently the call to createImage() returned null. This call is a Java method of Component (the ImageJ class extends Frame). The documentation of that method says:

"Returns: an off-screen drawable image, which can be used for double buffering. The return value may be null if the component is not displayable. This will always happen if GraphicsEnvironment.isHeadless() returns true."

comment:2 Changed 2012-04-26T10:52:20-05:00 by bdezonia

See also #1134

comment:3 Changed 2012-04-27T21:22:04-05:00 by bdezonia

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

With b840b6fec5f80a84170267f8d0696bad9cc02dcb I've implemented a pure IJ2 version of this command.

comment:4 Changed 2012-05-18T12:23:58-05:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta2