platform icon indicating copy to clipboard operation
platform copied to clipboard

NPE when using WINDOW instruction with MENU type without specifying orientation

Open danchanka opened this issue 4 years ago • 0 comments

Null pointer exception when using sample from documentation:

// menu without scrollbars under the root window
WINDOW menu MENU HIDESCROLLBARS DRAWROOT POSITION(20, 6, 80, 4); 
java.lang.NullPointerException
	at lsfusion.server.language.ScriptingLogicsModule.createMenuWindow(ScriptingLogicsModule.java:4368)
	at lsfusion.server.language.ScriptingLogicsModule.addScriptedWindow(ScriptingLogicsModule.java:4340)
	at lsfusion.server.language.LsfLogicsParser.windowCreateStatement(LsfLogicsParser.java:31214)
	at lsfusion.server.language.LsfLogicsParser.windowStatement(LsfLogicsParser.java:31150)

We need to set a default value to the orientation in this case or forbid use of MENU type without orientation specification. It seems there can be similar problems with other window options.

danchanka avatar Feb 24 '21 08:02 danchanka