On Mar 23, 2011, at 10:22 AM, Burger Wilhelm wrote:
> Dear IJ friends,
>
> for (rare) debugging purposes I used to invoke ImageJ's main(String[] args) method in the form
>
> ImageJ.main(null);
>
> which worked flawlessly in the past. With ImageJ 1.45d (32bit, WinXP), this now throws an exception:
>
> Exception in thread "main" java.lang.NullPointerException
> at ij.ImageJ.isRunning(ImageJ.java:629)
> at ij.ImageJ.main(ImageJ.java:584)
> at StartImageJ.main(StartImageJ.java:13)
>
> I tried changing this to pass a proper String array,
>
> String[] ijargs={""};
> ImageJ.main(ijargs);
>
> In this case IJ starts nicely but opens a message window saying
>
> Opener: "File is not supported format, a reader plugin is not available,
> or it was not found."
>
> Then I found that this works fine to launch ImageJ normally:
>
> ImageJ.main(new String[0]);
>
> Is this the intended behavior and/or were there any API changes recently?
These bugs are fixed in the 1.45e daily build.
-wayne