This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252441 - NullPointerException at org.netbeans.modules.xml.text.navigator.NavigatorContent.selectCurrentNode
Summary: NullPointerException at org.netbeans.modules.xml.text.navigator.NavigatorCont...
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-17 10:09 UTC by PavelInNetbeans
Modified: 2015-05-23 08:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 217349


Attachments
stacktrace (1.61 KB, text/plain)
2015-05-17 10:09 UTC, PavelInNetbeans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PavelInNetbeans 2015-05-17 10:09:11 UTC
Build: NetBeans IDE Dev (Build 201505150001)
VM: Java HotSpot(TM) Client VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
PavelInNetbeans: Trying to refresh Web Service References from context menu that was initiated by mouse-right on
the "Web Service References" - MyWebServiceReference. However, the process of refreshing finished without problems, but this NullPointerException popped up and I was asked to report this, so here you go.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.xml.text.navigator.NavigatorContent.selectCurrentNode(NavigatorContent.java:190)
   at org.netbeans.modules.xml.text.navigator.NavigatorContent.caretUpdate(NavigatorContent.java:173)
   at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:397)
   at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4394)
   at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4416)
   at org.netbeans.editor.BaseCaret$5.run(BaseCaret.java:956)
Comment 1 PavelInNetbeans 2015-05-17 10:09:12 UTC
Created attachment 153711 [details]
stacktrace
Comment 2 Svata Dedic 2015-05-18 08:20:29 UTC
Ouch; in some corner case the component may become invalid while the update event is queued in EDT. fixed in jet-main#aa51208482a8
Comment 3 Quality Engineering 2015-05-23 08:01:05 UTC
Integrated into 'main-silver', will be available in build *201505230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/aa51208482a8
User: Svata Dedic <sdedic@netbeans.org>
Log: #252441: do not fire events if the component is invalidated and caret detached