Closed mperrone closed 7 years ago
I've investigated enough within the debugger to conclude that I've found a bug: That it's not trivial to fix in your library (learning curve), and it's nothing to do with my code. If I don't see any interest in helping resolve the issue in the next week or so then I'll drop this library and roll my own mac specific menu code. Thanks.
Hey! The problem seems to be that you cannot have a menu bar without a scene. Have you tried to set a scene first? The behaviour you described is certainly not nice, so there should probably be some more meaningful exception.
Thanks Jan,
Agreed, there should be a check for null and a specific exception. Interestingly, scene had been set but that stage closed (login stage scene). Moving menu set up code to post next call to stage.setScene() does prevent the NPE, Please use this issue for that specific effort.
might be related to #16
Added a null check if no stage is set
I'm getting the following stack trace when a new stage calls show():
I'm using JDK 1.8.0_121 on MacOS (latest)
I'm running the program from the IDE (Idea), same behavior if I build a native package.
The window menu never showed up, so I commented it out to see if the NPE still occurs, and it does. The about menu item does work properly.
Am I doing something wrong?
The following method is called from Start():