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 182943 - NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.insertUpdate
Summary: NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.in...
Status: RESOLVED DUPLICATE of bug 180222
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 183860 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-26 17:29 UTC by err
Modified: 2011-05-04 13:31 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167127


Attachments
stacktrace (3.21 KB, text/plain)
2010-03-26 17:29 UTC, err
Details
stacktrace (3.02 KB, text/plain)
2010-06-21 22:49 UTC, Exceptions Reporter
Details
stacktrace (3.02 KB, text/plain)
2010-07-13 11:15 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2010-03-26 17:29:28 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 201003250201)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
err: Did a jvi/vim "p" command which added 10 chars to the doument
Changing
      private static final int P_BUF = P_IND;
to
      private static final int P_BUF = P_IND|P_IND_WIN;

Doesn't reproduce




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.hints.AnnotationHolder.insertUpdate(AnnotationHolder.java:312)
   at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:79)
   at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
   at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1631)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:784)
   at com.raelity.jvi.swing.SwingBuffer.insertText(SwingBuffer.java:196)
Comment 1 err 2010-03-26 17:29:32 UTC
Created attachment 95989 [details]
stacktrace
Comment 2 Jan Lahoda 2010-04-26 11:55:32 UTC
*** Bug 183860 has been marked as a duplicate of this bug. ***
Comment 3 Exceptions Reporter 2010-06-15 16:07:00 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=167127
Comment 4 err 2010-06-15 16:23:52 UTC
This comment is just to note that the last few stacktraces at http://statistics.netbeans.org/exceptions/detail.do?id=167127 do not have jVi in the backtrace.
Comment 5 Exceptions Reporter 2010-06-21 22:49:31 UTC
Created attachment 100291 [details]
stacktrace

was at the beginning of a line, and hit backspace, and it crashed.

I should probably upgrade now that 6.9 is out, but here is this just incase.
Comment 6 Exceptions Reporter 2010-07-13 11:15:26 UTC
Created attachment 100800 [details]
stacktrace

alt+tab ?
Comment 7 Jan Lahoda 2011-05-04 13:31:57 UTC
Hopefully resolved with fix for bug #180222.

*** This bug has been marked as a duplicate of bug 180222 ***