I have this problem:
Traceback (most recent call last):
File “event:actionPerformed”, line 4, in
java.lang.NullPointerException: java.lang.NullPointerException
caused by NullPointerException
Ignition v7.9.4 (b2017082911)
Java: Oracle Corporation 1.8.0_144
MY CODE IS:
windowsOpened = system.gui.getOpenedWindows()
if ‘Dettaglio Azione’ in str(windowsOpened):
#window = system.gui.getWindow(‘Database/Anagrafica Ricette/Dettaglio Azione’)
system.nav.closeWindow(‘Database/Anagrafica Ricette/Dettaglio Azione’) # chiude finestra
event.source.path = “Builtin/icons/16/navigate_left.png” # cammbia icona pulsante
#project.Global.inserisciInFinestreDokedOpend( ‘Database/Anagrafica Ricette/Cerca Ricetta’, ‘’) #toglie da code wodked windows aperte
else:
system.nav.openWindow(“Database/Anagrafica Ricette/Dettaglio Azione”) #apre finestra
event.source.path = “Builtin/icons/16/navigate_right.png” # cammbia icona pulsante
AND THEN I TRY TO EXECUTE AGAIN AND SEE THE IMAGE!