Skip to content

Commit 8783f0b

Browse files
committed
Fix bug when calling plugin in headless mode from macro.
1 parent 5b72ca3 commit 8783f0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/sc/fiji/analyzeSkeleton/AnalyzeSkeleton_.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ public void run(ImageProcessor ip)
365365
/** Disables dialog components that are irrelevant to GUI-based analysis. */
366366
public boolean dialogItemChanged(GenericDialog gd, AWTEvent e)
367367
{
368-
if (this.imRef.getRoi()==null)
368+
if ( this.imRef.getRoi() == null && null != gd
369+
&& null != gd.getCheckboxes() )
369370
{
370371
Checkbox roiOption = (Checkbox)gd.getCheckboxes().elementAt(1);
371372
roiOption.setEnabled(false);

0 commit comments

Comments
 (0)