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 195599 - IllegalStateException: Annotation not added: null
Summary: IllegalStateException: Annotation not added: null
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 08:30 UTC by tbrunhoff
Modified: 2011-02-22 05:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176643


Attachments
stacktrace (3.90 KB, text/plain)
2011-02-17 08:30 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-02-17 08:30:42 UTC
Build: NetBeans IDE Dev (Build 201102100500)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
tbrunhoff: switching project group (which changes to a different source tree)




Stacktrace: 
java.lang.IllegalStateException: Annotation not added: null
   at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:252)
   at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:519)
   at org.openide.text.DocumentLine.attachDetachAnnotations(DocumentLine.java:406)
   at org.openide.text.DocumentLine$LR.run(DocumentLine.java:880)
   at org.openide.text.DocumentLine$LR.invoke(DocumentLine.java:896)
   at org.openide.text.DocumentLine$LR.stateChanged(DocumentLine.java:901)
Comment 1 tbrunhoff 2011-02-17 08:30:47 UTC
Created attachment 106098 [details]
stacktrace
Comment 2 Sc0tTyXL 2011-02-21 10:02:39 UTC

*** This bug has been marked as a duplicate of bug 195346 ***
Comment 3 Jan Lahoda 2011-02-21 12:54:10 UTC
I tried to fix the synchronization inside DocumentLine:
http://hg.netbeans.org/jet-main/rev/35766788ea56
Comment 4 Quality Engineering 2011-02-22 05:25:32 UTC
Integrated into 'main-golden', will be available in build *201102220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/35766788ea56
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #195599: trying to correctly synchronized addition/removal of annotations via DocumentLine.