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

Exception in RadianceTreeUI Change Listener? #501

Open
MichaelWDenney opened this issue Dec 10, 2024 · 1 comment
Open

Exception in RadianceTreeUI Change Listener? #501

MichaelWDenney opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
8.0 - Marble Release 8.0 - 2024.H2

Comments

@MichaelWDenney
Copy link

Version of Radiance (latest release is 8.0-SNAPSHOT)

8.0-SNAPSHOT

Sub-project (Common, Animation, Theming, Component, ...)

Theming

Version of Java (current minimum is 9)

21.0.4+7

Version of OS

Windows 11

The issue you're experiencing (expected vs actual, screenshot, stack trace etc)

I am getting an occasional null pointer exception that appears to be coupled with the construction of a JTree and specifically the setting of the font during the creation. The JTree instance appears valid, but a call to tree.updateUI() is using a null tree value. Could this be a bug in the library?

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "javax.swing.JTree.updateUI()" because "this.tree" is null
	at org.pushingpixels.radiance.theming.internal.ui.RadianceTreeUI.lambda$installListeners$0(RadianceTreeUI.java:438)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@kirill-grouchnikov kirill-grouchnikov self-assigned this Dec 10, 2024
@kirill-grouchnikov kirill-grouchnikov added the 8.0 - Marble Release 8.0 - 2024.H2 label Dec 10, 2024
@kirill-grouchnikov
Copy link
Owner

I'll add a defensive check after Chroma work is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 - Marble Release 8.0 - 2024.H2
Projects
None yet
Development

No branches or pull requests

2 participants