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 232068

Summary: NullPointerException at org.netbeans.editor.Utilities.checkOffsetValid
Product: editor Reporter: viggonavarsete <viggonavarsete>
Component: Code foldingAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: exceptions_reporter
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 201813
Attachments: stacktrace

Description viggonavarsete 2013-07-01 10:33:19 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-11187-on-20130624)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
viggonavarsete: Clicked in a java file..




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1342)
   at org.netbeans.editor.Utilities.getRowStart(Utilities.java:200)
   at org.netbeans.modules.editor.bracesmatching.BraceMatchingSidebarComponent.showTooltip(BraceMatchingSidebarComponent.java:687)
   at org.netbeans.modules.editor.bracesmatching.BraceMatchingSidebarComponent.access$500(BraceMatchingSidebarComponent.java:111)
   at org.netbeans.modules.editor.bracesmatching.BraceMatchingSidebarComponent$5.run(BraceMatchingSidebarComponent.java:441)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
Comment 1 viggonavarsete 2013-07-01 10:33:20 UTC
Created attachment 136530 [details]
stacktrace
Comment 2 Svata Dedic 2013-07-01 11:35:40 UTC
Seems some other thread is closing the editor at the moment.

Null check added in rev http://hg.netbeans.org/jet-main/rev/36641d6c696a
Comment 3 Quality Engineering 2013-07-12 02:35:46 UTC
Integrated into 'main-silver', will be available in build *201307112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/36641d6c696a
User: Svata Dedic <sdedic@netbeans.org>
Log: #232068: bail out if the document was cleared from the editor already
Comment 4 Svata Dedic 2013-08-21 14:02:41 UTC
*** Bug 234028 has been marked as a duplicate of this bug. ***
Comment 5 Svata Dedic 2013-08-27 10:51:08 UTC
*** Bug 235056 has been marked as a duplicate of this bug. ***