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

BoolButton: Fix property listener #2537

Merged
merged 1 commit into from
Feb 7, 2023
Merged

BoolButton: Fix property listener #2537

merged 1 commit into from
Feb 7, 2023

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Feb 7, 2023

The button registers confirmDialogWidgetPropertyListener for propConfirmDialog but then removes it from propMode, resulting in this stack trace:

SEVERE [org.csstudio.display.builder.model] Unknown listener org.csstudio.display.builder.representation.javafx.widgets.BoolButtonRepresentation$$Lambda$1503/0x000000080115b620@411bed6c
java.lang.Exception: Unknown listener
	at org.csstudio.display.builder.model.properties.PropertyChangeHandler.removePropertyListener(PropertyChangeHandler.java:119)
	at org.csstudio.display.builder.representation.javafx.widgets.BoolButtonRepresentation.unregisterListeners(BoolButtonRepresentation.java:226)
	at org.csstudio.display.builder.representation.javafx.widgets.JFXBaseRepresentation.dispose(JFXBaseRepresentation.java:247)
	at org.csstudio.display.builder.representation.WidgetRepresentation.destroy(WidgetRepresentation.java:88)

The button registers `confirmDialogWidgetPropertyListener` for the `propConfirmDialog` but then removes that from the `propMode`, resulting in this stack trace:
```
SEVERE [org.csstudio.display.builder.model] Unknown listener org.csstudio.display.builder.representation.javafx.widgets.BoolButtonRepresentation$$Lambda$1503/0x000000080115b620@411bed6c
java.lang.Exception: Unknown listener
	at org.csstudio.display.builder.model.properties.PropertyChangeHandler.removePropertyListener(PropertyChangeHandler.java:119)
	at org.csstudio.display.builder.representation.javafx.widgets.BoolButtonRepresentation.unregisterListeners(BoolButtonRepresentation.java:226)
	at org.csstudio.display.builder.representation.javafx.widgets.JFXBaseRepresentation.dispose(JFXBaseRepresentation.java:247)
	at org.csstudio.display.builder.representation.WidgetRepresentation.destroy(WidgetRepresentation.java:88)
```
@kasemir
Copy link
Collaborator Author

kasemir commented Feb 7, 2023

#2463

@georgweiss
Copy link
Collaborator

@kasemir, this should have been on me. Sorry, something flushed this off my desk...

@kasemir
Copy link
Collaborator Author

kasemir commented Feb 7, 2023

No worries, it's benign, just doesn't look good in the console log.

@kasemir kasemir merged commit b5b61f6 into master Feb 7, 2023
@kasemir kasemir deleted the boolbuttonlistener branch February 7, 2023 19:51
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