possible roiManager bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

possible roiManager bug

Aryeh Weiss
The following command:

roiManager("Set Color", colorRoi);

successfully changes the selected ROi color. However, it throws the
following exception:


java.lang.NullPointerException
        at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1077)
        at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:1635)
        at ij.macro.Functions.roiManager(Functions.java:2327)
        at ij.macro.Functions.getFunctionValue(Functions.java:213)
        at ij.macro.Interpreter.getFactor(Interpreter.java:1249)
        at ij.macro.Interpreter.getTerm(Interpreter.java:1220)
        at ij.macro.Interpreter.getStringExpression(Interpreter.java:1357)
        at ij.macro.Interpreter.getStringTerm(Interpreter.java:1184)
        at ij.macro.Interpreter.getString(Interpreter.java:1141)
        at ij.macro.Interpreter.doStatement(Interpreter.java:248)
        at ij.macro.Interpreter.doBlock(Interpreter.java:518)
        at ij.macro.Interpreter.doStatement(Interpreter.java:239)
        at ij.macro.Interpreter.doIf(Interpreter.java:852)
        at ij.macro.Interpreter.doStatement(Interpreter.java:215)
        at ij.macro.Interpreter.doBlock(Interpreter.java:518)
        at ij.macro.Interpreter.runUserFunction(Interpreter.java:278)
        at ij.macro.Interpreter.doStatement(Interpreter.java:206)
        at ij.macro.Interpreter.doBlock(Interpreter.java:518)
        at ij.macro.Interpreter.runMacro(Interpreter.java:130)
        at ij.macro.MacroRunner.run(MacroRunner.java:143)
        at java.lang.Thread.run(Thread.java:680)

Do I have a mistake in the command, or is this a bug?

--aryeh
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051
Reply | Threaded
Open this post in threaded view
|

Re: possible roiManager bug

Rasband, Wayne (NIH/NIMH) [E]
On Sep 15, 2011, at 10:46 AM, Aryeh Weiss wrote:

> The following command:
>
> roiManager("Set Color", colorRoi);
>
> successfully changes the selected ROi color. However, it throws the
> following exception:
>
>
> java.lang.NullPointerException
> at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1077)
> at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:1635)


This bug is fixed in the ImageJ 1.45p daily build.

-wayne