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 180222 - [68cat] NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate
Summary: [68cat] NullPointerException at org.netbeans.modules.editor.hints.AnnotationH...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 182943 183183 188802 198928 200333 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-03 09:52 UTC by Peter Pis
Modified: 2011-07-29 08:26 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164859


Attachments
stacktrace (3.01 KB, text/plain)
2010-02-03 09:52 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2010-02-03 09:52:02 UTC
This bug was originally marked as duplicate of bug 177914, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 100203-1100b5a3feec)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125
OS: Mac OS X

User Comments:
GUEST: Using fixed imports

GUEST: I was in the process of creating a constructor for a class, when the app began to complain of NullPointerExceptions.

ppis: Invoking code completion.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:411)
   at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:99)
   at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
   at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1626)
   at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:291)
   at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
Comment 1 Peter Pis 2010-02-03 09:52:08 UTC
Created attachment 93810 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2010-05-12 15:46:06 UTC
*** Bug 183183 has been marked as a duplicate of this bug. ***
Comment 3 Jan Lahoda 2010-10-04 12:33:08 UTC
*** Bug 188802 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2011-04-28 19:09:33 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164859
Comment 5 Jan Lahoda 2011-05-04 13:31:17 UTC
http://hg.netbeans.org/jet-main/rev/e6bc238d1b87
Comment 6 Jan Lahoda 2011-05-04 13:31:57 UTC
*** Bug 182943 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2011-05-05 06:02:46 UTC
Integrated into 'main-golden', will be available in build *201105050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e6bc238d1b87
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #180222: the maps that hold the errors may apparently be sometimes inconsistent (for unknown reasons) - preventing NPE in such a case.
Comment 8 Jan Lahoda 2011-05-26 19:14:29 UTC
*** Bug 198928 has been marked as a duplicate of this bug. ***
Comment 9 Jan Lahoda 2011-07-29 08:26:29 UTC
*** Bug 200333 has been marked as a duplicate of this bug. ***