jherkel opened a new issue, #8749: URL: https://github.com/apache/netbeans/issues/8749
### Apache NetBeans version Apache NetBeans 27 ### What happened When I try to open Evaulate Expression window I can see NPE and wrong context of this window <img width="1999" height="296" alt="Image" src="https://github.com/user-attachments/assets/f5e16ef3-2673-4bd8-96c8-06581a979322" /> After some time this invalid context is hidden and the window is inactive (I cannot see cursor or type some text). <img width="1999" height="296" alt="Image" src="https://github.com/user-attachments/assets/afd5343d-5084-4907-a65c-1fb1b0e0bde4" /> Sometime this state is reverted and the second attempt shows correct Evaulate Expression window but usually it stays in an invalid state. Log `SEVERE [org.openide.util.Exceptions] java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:948) at org.netbeans.api.editor.mimelookup.MimePath.parse(MimePath.java:203) at org.netbeans.api.editor.mimelookup.MimeLookup.getLookup(MimeLookup.java:111) at org.netbeans.spi.editor.highlighting.support.HighlightsContainers$1InlineHintsSettingsAwareContainer.<init>(HighlightsContainers.java:41) at org.netbeans.spi.editor.highlighting.support.HighlightsContainers.inlineHintsSettingAwareContainer(HighlightsContainers.java:78) at org.netbeans.modules.java.editor.semantic.HighlightsLayerFactoryImpl.createLayers(HighlightsLayerFactoryImpl.java:42) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.rebuildAllLayersImpl(HighlightingManager.java:378) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting$4.run(HighlightingManager.java:357) at java.desktop/javax.swing.text.AbstractDocument.render(AbstractDocument.java:442) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.rebuildAllLayers(HighlightingManager.java:354) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.rebuildAll(HighlightingManager.java:340) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager$Highlighting.<init>(HighlightingManager.java:202) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager.<init>(HighlightingManager.java:150) at org.netbeans.modules.editor.lib2.highlighting.HighlightingManager.getInstance(HighlightingManager.java:78) at org.netbeans.modules.editor.hints.HintsUI.caretUpdate(HintsUI.java:980) at org.netbeans.modules.editor.hints.HintsUI.setComponent(HintsUI.java:181) at org.netbeans.modules.editor.hints.HintsUI.propertyChange(HintsUI.java:902) at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) at org.netbeans.api.editor.EditorRegistry.fireEvents(EditorRegistry.java:544) at org.netbeans.api.editor.EditorRegistry.register(EditorRegistry.java:288) at org.netbeans.api.editor.EditorRegistry$PackageAccessor.register(EditorRegistry.java:780) at org.netbeans.editor.BaseTextUI.installUI(BaseTextUI.java:221) at java.desktop/javax.swing.JComponent.setUI(JComponent.java:740) at java.desktop/javax.swing.text.JTextComponent.setUI(JTextComponent.java:335) at org.netbeans.editor.BaseKit.install(BaseKit.java:729) at org.netbeans.modules.editor.java.JavaKit.install(JavaKit.java:278) at java.desktop/javax.swing.JEditorPane.setEditorKit(JEditorPane.java:1101) at org.netbeans.api.editor.DialogBinding.bind(DialogBinding.java:149) at org.netbeans.api.editor.DialogBinding.bindComponentToFile(DialogBinding.java:108) at org.netbeans.modules.debugger.jpda.ui.WatchPanel$3.run(WatchPanel.java:379) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:702) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) 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) Caused: java.lang.reflect.InvocationTargetException at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1312) at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1287) at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1474) [catch] at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(WatchPanel.java:391) at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(WatchPanel.java:154) at org.netbeans.modules.debugger.jpda.ui.JPDACodeEvaluator.setupContext(JPDACodeEvaluator.java:76) at org.netbeans.modules.debugger.ui.eval.CodeEvaluatorUI.setupContextLazily(CodeEvaluatorUI.java:236) at org.netbeans.modules.debugger.ui.eval.CodeEvaluatorUI.access$400(CodeEvaluatorUI.java:67) at org.netbeans.modules.debugger.ui.eval.CodeEvaluatorUI$2.run(CodeEvaluatorUI.java:208) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018) SEVERE [global] java.lang.NullPointerException: Cannot read field "x" because "r" is null at java.desktop/javax.swing.JComponent.repaint(JComponent.java:4920) at org.netbeans.api.editor.caret.CaretItem.setCaretBoundsWithRepaint(CaretItem.java:235) at org.netbeans.api.editor.caret.EditorCaret.update(EditorCaret.java:2046) at org.netbeans.api.editor.caret.EditorCaret.access$400(EditorCaret.java:143) at org.netbeans.api.editor.caret.EditorCaret$7.run(EditorCaret.java:1929) at org.netbeans.api.editor.caret.EditorCaret.dispatchUpdate(EditorCaret.java:1943) at org.netbeans.api.editor.caret.EditorCaret.runTransaction(EditorCaret.java:1670) at org.netbeans.api.editor.caret.EditorCaret.setDot(EditorCaret.java:577) at org.netbeans.api.editor.caret.EditorCaret.setDot(EditorCaret.java:546) at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.mousePressed(EditorCaret.java:2851) at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:290) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6573) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3404) at java.desktop/java.awt.Component.processEvent(Component.java:6341) at java.desktop/java.awt.Container.processEvent(Container.java:2260) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4958) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4790) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4917) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4557) 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:2671) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4790) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:725) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:702) 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)` ### Language / Project Type / NetBeans Component _No response_ ### How to reproduce Start debug a project and during debuging try to open Evaulate Expression window. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Fedora Linux 42 (kernel 6.15.10 and 6.16.2) Wayland ### JDK JDK 24 and JDK 25 ### 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
