Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when using WINDOW instruction with MENU type without specifying orientation #562

Open
danchanka opened this issue Feb 24, 2021 · 0 comments
Labels
bug Something isn't working
Projects

Comments

@danchanka
Copy link
Collaborator

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 danchanka added the bug Something isn't working label Feb 24, 2021
@danchanka danchanka added this to New in lsfusion via automation Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
lsfusion
  
New
Development

No branches or pull requests

1 participant