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 195153 - ISE "Trying to remove null annotation" from NbEditorDocument.removeAnnotation
Summary: ISE "Trying to remove null annotation" from NbEditorDocument.removeAnnotation
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 195160 195181 195198 (view as bug list)
Depends on: 195209
Blocks:
  Show dependency tree
 
Reported: 2011-02-08 00:18 UTC by Jesse Glick
Modified: 2011-02-09 06:08 UTC (History)
2 users (show)

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 Jesse Glick 2011-02-08 00:18:05 UTC
f977940b24f3. Thrown over and over when I try to edit a Java source file, making it impossible to continue.

SEVERE [global]
java.lang.IllegalStateException: Trying to remove null annotation.
	at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:244)
	at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:519)
	at org.netbeans.modules.editor.hints.AnnotationHolder$NbDocumentAttacher.detachAnnotation(AnnotationHolder.java:259)
	at org.netbeans.modules.editor.hints.AnnotationHolder.detachAnnotation(AnnotationHolder.java:225)
	at org.netbeans.modules.editor.hints.AnnotationHolder.updateAnnotationOnLine(AnnotationHolder.java:656)
	at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:459)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:102)
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
	at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1670)
	at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:969)
	at org.netbeans.lib.editor.codetemplates.AbbrevDetection.expand(AbbrevDetection.java:523)
	at org.netbeans.lib.editor.codetemplates.AbbrevDetection.expand(AbbrevDetection.java:421)
	at org.netbeans.lib.editor.codetemplates.AbbrevDetection.checkExpansionKeystroke(AbbrevDetection.java:325)
	at org.netbeans.lib.editor.codetemplates.AbbrevDetection.keyPressed(AbbrevDetection.java:285)
	at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:233)
	at java.awt.Component.processKeyEvent(Component.java:6225)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2801)
	at java.awt.Component.processEvent(Component.java:6044)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] 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 Jan Lahoda 2011-02-08 09:21:36 UTC
*** Bug 195160 has been marked as a duplicate of this bug. ***
Comment 2 Miloslav Metelka 2011-02-08 09:41:47 UTC
Apologies for the regression.
http://hg.netbeans.org/jet-main/rev/faa4c323819d
Comment 3 Marian Mirilovic 2011-02-08 16:35:19 UTC
*** Bug 195181 has been marked as a duplicate of this bug. ***
Comment 4 Jan Lahoda 2011-02-08 20:35:09 UTC
*** Bug 195198 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2011-02-09 06:08:24 UTC
Integrated into 'main-golden', will be available in build *201102090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/faa4c323819d
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #195153 - ISE "Trying to remove null annotation" from NbEditorDocument.removeAnnotation.