-
Notifications
You must be signed in to change notification settings - Fork 263
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 closing MapTool after a macro is opened twice simultaneously for editing. #1426
Comments
Is this only happening when a campaign is loaded and there are macros on a visible panel? Perhaps the mouse pointer is hovering over a macro button as the panel is being disposed of and it is trying to get the macro ID to get a tooltip? |
Maybe? It only happens every now and then and usually by the time I see the error message I forgot what I just did. |
The steps in #1495 can be followed to replicate the bug. |
…twice - Fix editing a macro which is already being edited creates new Find/Replace entries in Edit menu - Fix NPE when closing MapTool after creating duplicated find/replace entries - Fix RPTools#1426 and fix RPTools#1495
- Fix editing a macro which is already being edited creates new Find/Replace entries in Edit menu - Fix NPE when closing MapTool after creating duplicated find/replace entries - Fix RPTools#1426 and fix RPTools#1495
PR #1825 fixes this. |
Tested. No longer NPEs on exit after attempting to Edit a macro already open in an editor window. |
Describe the bug
I've noticed an occasional NPE in the console when closing MapTool. When not using the console, I see a window popup for a split second while closing, exactly how it was for #700.
The problematic line appears to be
String id = button.getProperties().getMacroUUID();
To Reproduce
I'm unable to constantly reproduce this.
Expected behavior
No NPE when closing MapTool.
MapTool Info
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: