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 204002 - org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
Summary: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.Nul...
Status: RESOLVED DUPLICATE of bug 202588
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 10:03 UTC by anba
Modified: 2011-11-04 09:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181829


Attachments
stacktrace (1.09 KB, text/plain)
2011-10-20 10:03 UTC, anba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anba 2011-10-20 10:03:53 UTC
This issue was reported manually by anba.
It already has 7 duplicates 


Build: NetBeans IDE 7.1 Beta (Build 201109252201)
VM: Java HotSpot(TM) Server VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07
OS: Linux

User Comments:
PrakharMathur: I was trying to save a file when this exception occurred.

anba: Selecting in Editor.

anba: Deleting some selected lines.

anba: Selecting a C++ method.




Stacktrace: 
org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
   at org.openide.util.RequestProcessor.post(RequestProcessor.java:425)
   at org.netbeans.spi.editor.hints.HintsController.setErrors(HintsController.java:82)
   at org.netbeans.modules.cnd.highlight.error.HighlightProvider.removeAnnotations(HighlightProvider.java:204)
   at org.netbeans.modules.cnd.highlight.error.HighlightProvider.addAnnotations(HighlightProvider.java:161)
   at org.netbeans.modules.cnd.highlight.error.HighlightProvider.update(HighlightProvider.java:104)
   at org.netbeans.modules.cnd.highlight.error.HighlightProviderTaskFactory$PhaseRunnerImpl.run(HighlightProviderTaskFactory.java:135)
Comment 1 anba 2011-10-20 10:03:57 UTC
Created attachment 112256 [details]
stacktrace
Comment 2 Jan Lahoda 2011-10-24 09:04:28 UTC
java.lang.NullPointerException
        at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.viewIndexFirstByStartOffset(DocumentViewChildren.java:248)
        at org.netbeans.modules.editor.lib2.view.DocumentView.getViewIndex(DocumentView.java:327)
        at org.netbeans.modules.editor.lib2.view.ViewHierarchyImpl.modelToParagraphView(ViewHierarchyImpl.java:284)
        at org.netbeans.modules.editor.lib2.view.LockedViewHierarchy.modelToParagraphView(LockedViewHierarchy.java:124)
        at org.netbeans.editor.GlyphGutter$6.run(GlyphGutter.java:655)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1404)
        at org.netbeans.editor.GlyphGutter.changedLine(GlyphGutter.java:644)
        at org.netbeans.editor.Annotations.fireChangedLine(Annotations.java:644)
        at org.netbeans.editor.Annotations.refreshLine(Annotations.java:564)
        at org.netbeans.editor.Annotations.removeAnnotation(Annotations.java:357)
        at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:256)
        at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:519)
        at org.netbeans.modules.editor.hints.ParseErrorAnnotation.detachAnnotation(ParseErrorAnnotation.java:156)
        at org.netbeans.modules.editor.hints.AnnotationHolder$NbDocumentAttacher.detachAnnotation(AnnotationHolder.java:247)
        at org.netbeans.modules.editor.hints.AnnotationHolder.detachAnnotation(AnnotationHolder.java:226)
        at org.netbeans.modules.editor.hints.AnnotationHolder.updateAnnotationOnLine(AnnotationHolder.java:642)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:981)
        at org.netbeans.modules.editor.hints.AnnotationHolder.access$1400(AnnotationHolder.java:120)
        at org.netbeans.modules.editor.hints.AnnotationHolder$5.run(AnnotationHolder.java:894)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1404)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptions(AnnotationHolder.java:891)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrorsImpl(HintsControllerImpl.java:111)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrors(HintsControllerImpl.java:93)
        at org.netbeans.spi.editor.hints.HintsController$1.run(HintsController.java:84)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
Comment 3 Exceptions Reporter 2011-10-31 16:32:53 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=181829
Comment 4 Miloslav Metelka 2011-11-04 09:37:07 UTC
This is dup of issue 202588. Please download a recent Dev build to get rid of this problem.

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