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

Opened 2013-04-01T12:03:27-05:00

Last modified 2013-04-01T13:41:29-05:00

Legacy Create Mask plugin throws exception in IJ1

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

Open Boats
Threshold it
Run Edit > Selection > Create Mask

An exception is thrown (see below) in an IJ1 log window. The command appears to work however.

java.lang.NullPointerException

at ij.plugin.Duplicator.cropOverlay(Duplicator.java:369)
at ij.plugin.Duplicator.duplicateImage(Duplicator.java:126)
at ij.plugin.Duplicator.run(Duplicator.java:67)
at ij.plugin.Duplicator.run(Duplicator.java:49)
at ij.IJ.runPlugIn(IJ.java:158)
at ij.Executer.runCommand(Executer.java:127)
at ij.Executer.run(Executer.java:64)
at ij.IJ.run(IJ.java:251)
at ij.plugin.Selection.createMaskFromThreshold(Selection.java:559)
at ij.plugin.Selection.createMask(Selection.java:530)
at ij.plugin.Selection.run(Selection.java:52)
at ij.IJ.runPlugIn(IJ.java:158)
at ij.IJ.runPlugIn(IJ.java:141)
at imagej.legacy.plugin.LegacyCommand$LegacyCommandThread.run(LegacyCommand.java:199)

Change History

comment:1 Changed 2013-04-01T13:41:29-05:00 by bdezonia

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

Fixed with commit 8055f68950b55ab447b131a3c38221cff32020d4