-
Notifications
You must be signed in to change notification settings - Fork 40
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 at javax.swing.ToolTipManager.initiateToolTip(ToolTipManager.java:478) #226
Comments
Is this still for the project tree? |
Yes |
Hello @weisJ , I don't know which one was leading to the NPE. |
Hello @weisJ , You have made a PR: But this introduced this bug:: Which was fixed by removing what you had put in your PR: FI: @FSchumacher |
So maybe, we (JMeter) should switch back to returning an empty tooltip? It seems, there is no good way to handle it. |
This definitely solves the question for the cause of the issue.
The problem here really is that the jdk prior to version 9 has an conflicting implementation regarding tooltips in |
Thanks @weisJ for the idea. |
Describe the bug
Using JMeter latest nightly build with Darklaf latest release I get many NPE with below stacktrace:
Note I had reported a similar bug:
java.lang.NullPointerException: null at javax.swing.ToolTipManager.initiateToolTip(ToolTipManager.java:478) ~[?:1.8.0_161] at javax.swing.ToolTipManager.mouseEntered(ToolTipManager.java:435) ~[?:1.8.0_161] at com.github.weisj.darklaf.ui.tooltip.DarkToolTipUI$2.mouseEntered(DarkToolTipUI.java:79) ~[darklaf-core-2.5.3.jar:2.5.3] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:300) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:299) ~[?:1.8.0_161] at java.awt.Component.processMouseEvent(Component.java:6542) ~[?:1.8.0_161] at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[?:1.8.0_161] at java.awt.Component.processEvent(Component.java:6298) ~[?:1.8.0_161] at java.awt.Container.processEvent(Container.java:2237) ~[?:1.8.0_161] at java.awt.Component.dispatchEventImpl(Component.java:4889) ~[?:1.8.0_161] at java.awt.Container.dispatchEventImpl(Container.java:2295) ~[?:1.8.0_161] at java.awt.Component.dispatchEvent(Component.java:4711) ~[?:1.8.0_161] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889) ~[?:1.8.0_161] at java.awt.LightweightDispatcher.retargetMouseEnterExit(Container.java:4677) ~[?:1.8.0_161] at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4655) ~[?:1.8.0_161] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4506) ~[?:1.8.0_161] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467) ~[?:1.8.0_161] at java.awt.Container.dispatchEventImpl(Container.java:2281) ~[?:1.8.0_161] at java.awt.Window.dispatchEventImpl(Window.java:2746) ~[?:1.8.0_161] at java.awt.Component.dispatchEvent(Component.java:4711) ~[?:1.8.0_161] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[?:1.8.0_161] at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_161] at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_161] at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_161] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_161] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[?:1.8.0_161] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) ~[?:1.8.0_161] at java.awt.EventQueue$4.run(EventQueue.java:731) ~[?:1.8.0_161] at java.awt.EventQueue$4.run(EventQueue.java:729) ~[?:1.8.0_161] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_161] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[?:1.8.0_161] at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[?:1.8.0_161] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_161] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_161] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_161] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_161] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_161] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_161]
To Reproduce
I cannot tell exactly when it starts to happen.
No plugin used, just core jmeter.
Screenshots
I see no impact unless this one is related:
I notice that after certain time , the left and right key instead of closing / opening a leaf start to select previous / next node of JTree.
Additional Information:
Additional context
This does not happen with System LAF.
The text was updated successfully, but these errors were encountered: