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

Fix NPE when Network Tree window closing overlaps with event #234

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

bobjacobsen
Copy link
Contributor

Very, very rarely I was encountering an NPE when closing the Network Tree (Configure Nodes) window.

The cause was a PropertyChangeEvent arriving after the release() call had (in theory) closed everything down. That nulled-out the timer reference. This detects that condition and ignores the event with a warning in the log.

Not clear to me whether that log message should be a warning or some lower level, though.

@balazsracz balazsracz merged commit d4e9f01 into openlcb:master Oct 6, 2023
@bobjacobsen bobjacobsen deleted the NPE-in-config-window branch November 4, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants