Is this a general Bug? Or just on my Fiji install

Hello everyone,
I encounter recurrent problems with the script window in Fiji while switching language type.
I’m wondering if it’a general bug, or if it’s just my Fiji install.

Could anyone check if the same error occurs in your Fiji?


By the way: is it possible to define the default script language at startup?

I’m running the latest Updated Standard Fiji (with ImageJ 1,52v)

JAVA 1.8.0_172 64bit

MacOS 10.12.6

How to:

Open Fiji. Start Fresh empty script window, then chose IJM1 macro in ‘Language’ and start writing somthing:

for exemple:


then change the language to “None”:

And Boom:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at org.scijava.ui.swing.script.TextEditor.setLanguage(

at org.scijava.ui.swing.script.TextEditor.lambda$new$3(

at javax.swing.AbstractButton.fireActionPerformed(

at javax.swing.AbstractButton$Handler.actionPerformed(

at javax.swing.DefaultButtonModel.fireActionPerformed(

at javax.swing.JToggleButton$ToggleButtonModel.setPressed(

at javax.swing.AbstractButton.doClick(


at java.awt.CheckboxMenuItem.processItemEvent(

at java.awt.CheckboxMenuItem.processEvent(

at java.awt.MenuComponent.dispatchEventImpl(

at java.awt.MenuComponent.dispatchEvent(

at java.awt.EventQueue.dispatchEventImpl(

at java.awt.EventQueue.access$500(

at java.awt.EventQueue$

at java.awt.EventQueue$

at Method)



at java.awt.EventQueue$

at java.awt.EventQueue$

at Method)


at java.awt.EventQueue.dispatchEvent(

at java.awt.EventDispatchThread.pumpOneEventForFilters(

at java.awt.EventDispatchThread.pumpEventsForFilter(

at java.awt.EventDispatchThread.pumpEventsForHierarchy(

at java.awt.EventDispatchThread.pumpEvents(

at java.awt.EventDispatchThread.pumpEvents(

1 Like

Hey @GoranL,

I can reproduce this issue on my Windows / Fiji. I created a bug report on github. I hope we find time soon to fix it. But for now you can work, right? Or does it harm your workflows in a significan way?

Thanks for reporting! This kind of feedback is essential and allows us to make Fiji better. Thus, thanks for your support!


OK so it’s not just my Fiji then.
I can live/work with it of course, since it doesn’t crash Fiji.

Do you know if it’s possible to define the script language by default?

(And thanks to you and all the community here)

Cheers Goran

Hi @GoranL,

Sorry about this error: it is now fix in the Script Editor master branch (thanks @haesleinhuepf for putting in a bug report) and soon will be released to the Fiji updater.

On your question, currently there isn’t a mechanism for defining a default language at start up. One could implement such a feature, no laws of physics against it, only lack of developer time.


1 Like

I’ve done it:

Will be up in the next release, at some point tonight or early tomorrow.

:beers: Thank you for that