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 170487 - NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate
Summary: NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.re...
Status: RESOLVED DUPLICATE of bug 177914
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords:
: 170948 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-17 16:41 UTC by misterm
Modified: 2009-12-01 12:31 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 156066


Attachments
stacktrace (4.06 KB, text/plain)
2009-08-17 16:41 UTC, misterm
Details
stacktrace (4.21 KB, text/plain)
2009-08-26 17:01 UTC, misterm
Details
stacktrace (4.12 KB, text/plain)
2009-08-26 17:03 UTC, misterm
Details
stacktrace (2.83 KB, text/plain)
2009-09-01 17:44 UTC, Michel Graciano
Details
stacktrace (3.48 KB, text/plain)
2009-09-04 17:02 UTC, alejandromoralesmeza
Details
stacktrace (3.20 KB, text/plain)
2009-09-21 15:38 UTC, Michel Graciano
Details
stacktrace (3.20 KB, text/plain)
2009-09-21 18:26 UTC, Michel Graciano
Details
stacktrace (3.47 KB, text/plain)
2009-10-14 14:36 UTC, aldobrucale
Details
stacktrace (2.95 KB, text/plain)
2009-12-01 02:15 UTC, Maksim Khramov
Details
stacktrace (2.84 KB, text/plain)
2009-12-01 05:59 UTC, Ivan Sidorkin
Details
stacktrace (9.49 KB, text/plain)
2009-12-01 08:30 UTC, Martin Schovanek
Details
stacktrace (10.25 KB, text/plain)
2009-12-01 08:35 UTC, Martin Schovanek
Details
stacktrace (9.49 KB, text/plain)
2009-12-01 08:36 UTC, Martin Schovanek
Details
package currently being edited where the exception raises (22.07 KB, application/zip)
2009-12-01 12:31 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-08-17 16:41:15 UTC
Build: NetBeans IDE Dev (Build 090812)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments:
misterm: Reloading a Matisse form



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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.BaseDocument.remove(BaseDocument.java:925)
        at org.openide.text.CloneableEditorSupport$3.run(CloneableEditorSupport.java:727)
Comment 1 misterm 2009-08-17 16:41:20 UTC
Created attachment 86330 [details]
stacktrace
Comment 2 Max Sauer 2009-08-18 10:24:35 UTC
Could you please provide some steps to reproduce, example source, etc.? Thanks.
Comment 3 misterm 2009-08-26 17:01:02 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-3808-on-090825)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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.BaseDocument.remove(BaseDocument.java:925)
        at org.netbeans.modules.editor.guards.PositionBounds$1.run(PositionBounds.java:212)
Comment 4 misterm 2009-08-26 17:01:06 UTC
Created attachment 86701 [details]
stacktrace
Comment 5 misterm 2009-08-26 17:01:31 UTC
I've renamed a JButton in a Matisse form using the Inspector view.
Comment 6 misterm 2009-08-26 17:03:05 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-3808-on-090825)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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.BaseDocument.remove(BaseDocument.java:925)
        at org.netbeans.modules.editor.guards.PositionBounds$1.run(PositionBounds.java:212)
Comment 7 misterm 2009-08-26 17:03:08 UTC
Created attachment 86702 [details]
stacktrace
Comment 8 Michel Graciano 2009-09-01 17:44:45 UTC
Build: NetBeans IDE Dev (Build 200909010201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
During an diff operation, just click at button to remove all changes (move all from left to right)

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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.BaseDocument.remove(BaseDocument.java:925)
        at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView$4.run(EditableDiffView.java:499)
Comment 9 Michel Graciano 2009-09-01 17:44:50 UTC
Created attachment 86927 [details]
stacktrace
Comment 10 Exceptions Reporter 2009-09-01 17:44:55 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 11 Max Sauer 2009-09-04 13:39:31 UTC
*** Issue 170948 has been marked as a duplicate of this issue. ***
Comment 12 alejandromoralesmeza 2009-09-04 17:02:43 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 
Cutting a portion of text in the source of a TopComponent

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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.BaseDocument.remove(BaseDocument.java:925)
        at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.removeText(BasicTextUI.java:2577)
Comment 13 alejandromoralesmeza 2009-09-04 17:02:56 UTC
Created attachment 87133 [details]
stacktrace
Comment 14 Exceptions Reporter 2009-09-04 17:03:39 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 15 Michel Graciano 2009-09-21 15:38:36 UTC
Build: NetBeans IDE Dev (Build 200909190201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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:312)
        at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
Comment 16 Michel Graciano 2009-09-21 15:38:40 UTC
Created attachment 88026 [details]
stacktrace
Comment 17 Exceptions Reporter 2009-09-21 15:38:46 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 18 Michel Graciano 2009-09-21 18:26:22 UTC
Build: NetBeans IDE Dev (Build 200909190201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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:312)
        at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
Comment 19 Michel Graciano 2009-09-21 18:26:25 UTC
Created attachment 88042 [details]
stacktrace
Comment 20 Exceptions Reporter 2009-09-21 18:26:30 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 21 aldobrucale 2009-10-14 14:36:52 UTC
Build: NetBeans IDE Dev (Build 200910100201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
format java code

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:410)
        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:312)
        at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
Comment 22 aldobrucale 2009-10-14 14:36:58 UTC
Created attachment 89444 [details]
stacktrace
Comment 23 Exceptions Reporter 2009-10-14 14:37:07 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 24 Maksim Khramov 2009-12-01 02:15:19 UTC
Created attachment 91899 [details]
stacktrace
Comment 25 Ivan Sidorkin 2009-12-01 05:59:34 UTC
Created attachment 91918 [details]
stacktrace
Comment 26 misterm 2009-12-01 07:57:39 UTC
This happens in an abstract class that (mistakenly) extends a Java SE 6 class in a  JDK 5 project. It is a freeform which has been compiled with Java 6. Once you try to delete the import or the extends clause, the exception is thrown.
Comment 27 Martin Schovanek 2009-12-01 08:30:37 UTC
Created attachment 91936 [details]
stacktrace
Comment 28 Martin Schovanek 2009-12-01 08:35:37 UTC
Created attachment 91937 [details]
stacktrace
Comment 29 Exceptions Reporter 2009-12-01 08:35:45 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 30 Martin Schovanek 2009-12-01 08:36:37 UTC
Created attachment 91938 [details]
stacktrace
Comment 31 Exceptions Reporter 2009-12-01 08:36:45 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=156066
Comment 32 Max Sauer 2009-12-01 08:44:05 UTC
This has been fixed as part of #177914.

*** This bug has been marked as a duplicate of bug 177914 ***
Comment 33 alied 2009-12-01 12:31:16 UTC
Created attachment 91956 [details]
package currently being edited where the exception raises