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 177915

Summary: NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate
Product: editor Reporter: Eduardo.m Costa <_m4c0_>
Component: Hints & AnnotationsAssignee: Max Sauer <msauer>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 163194
Attachments: stacktrace

Description Eduardo.m Costa 2009-12-01 07:09:39 UTC
This bug was originally marked as duplicate of bug 170487, 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 nbms-and-javadoc-4433-on-091201)
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:
_m4c0_: maven nbm project, scala source. I have this snippet:

n.getLookup.lookup classOf[DataFolder] != null

I selected "classOf[DataFolder]" and typed "("



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.scala.editor.ScalaKeystrokeHandler$$anonfun$beforeCharInserted$1.apply(ScalaKeystrokeHandler.java:624)
Comment 1 Eduardo.m Costa 2009-12-01 07:09:43 UTC
Created attachment 91925 [details]
stacktrace
Comment 2 Max Sauer 2009-12-01 08:02:01 UTC
This is a duplicate.

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