mbien opened a new issue, #9155:
URL: https://github.com/apache/netbeans/issues/9155

   ### Apache NetBeans version
   
   Apache NetBeans 29 latest release candidate
   
   ### What happened
   
   works fine on JDK 25.0.2
   
   ```
   SEVERE [global]
   java.lang.NullPointerException: Cannot invoke 
"java.awt.Component.addPropertyChangeListener(String, 
java.beans.PropertyChangeListener)" because "invoker" is null
        at java.desktop/javax.swing.JPopupMenu.setInvoker(JPopupMenu.java:963)
        at 
org.netbeans.core.output2.OutputTab$PMListener.popupMenuWillBecomeInvisible(OutputTab.java:1309)
        at 
java.desktop/javax.swing.JPopupMenu.firePopupMenuWillBecomeInvisible(JPopupMenu.java:713)
        at java.desktop/javax.swing.JPopupMenu.setVisible(JPopupMenu.java:824)
        at 
java.desktop/javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1556)
        at 
java.desktop/javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:128)
        at 
java.desktop/javax.swing.MenuSelectionManager.clearSelectedPath(MenuSelectionManager.java:160)
        at 
java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
        at 
java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1026)
        at 
java.desktop/java.awt.Component.processMouseEvent(Component.java:6570)
        at 
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3390)
        at java.desktop/java.awt.Component.processEvent(Component.java:6335)
        at java.desktop/java.awt.Container.processEvent(Container.java:2260)
        at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4952)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
        at 
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4917)
        at 
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4560)
        at 
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4501)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2667)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:716)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
   [catch] 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)
   ```
   
   method in question:
   
   
https://github.com/apache/netbeans/blob/0a82a1f93171e0c490e02fac5b3b30c5c450d142/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java#L1306-L1321
   
   
   ### Language / Project Type / NetBeans Component
   
   any
   
   ### How to reproduce
   
   open output window and build a project to fill it, now try to clear it via 
right click context menu
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   linux
   
   ### JDK
   
   Oracle JDK 26 ea build 31
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to