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 179444 - NullPointerException in XML Text Editor during editing
Summary: NullPointerException in XML Text Editor during editing
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 00:59 UTC by winkp
Modified: 2010-05-18 11:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description winkp 2010-01-13 00:59:06 UTC
Trying to use the XML editor provided by the platform. Posted this in the forum and I was redirected here.

Just enabled 'XML Text Editor' in IDE cluster. Clicked on the resolve button when it was shown in red (only once).

When an XML file is opened and add a tag, as soon as I type the closing bracket of a tag, the following exception throws up:

java.lang.NullPointerException
   at org.netbeans.modules.xml.text.bracematch.XMLBraceMatcher.findTokenAtContext(XMLBraceMatcher.java:221)
   at org.netbeans.modules.xml.text.bracematch.XMLBraceMatcher.hasEndTag(XMLBraceMatcher.java:426)
   at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query(XMLCompletionQuery.java:143)
   at org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.query(XMLCompletionProvider.java:114)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Caused: org.openide.util.RequestProcessor$Item: task failed due to
   at org.openide.util.RequestProcessor.post(RequestProcessor.java:267)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.performQuery(AsyncCompletionTask.java:174)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.query(AsyncCompletionTask.java:127)
   at org.netbeans.modules.editor.completion.CompletionImpl.queryResultSets(CompletionImpl.java:1533)
   at org.netbeans.modules.editor.completion.CompletionImpl.access$400(CompletionImpl.java:102)
   at org.netbeans.modules.editor.completion.CompletionImpl$3.actionPerformed(CompletionImpl.java:230)
   at javax.swing.Timer.fireActionPerformed(Timer.java:271)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 _ alexpetrov 2010-05-18 11:32:15 UTC
This bug is not reproducible on NB 6.9 builds.