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 - NullPointerException at org.netbeans.editor.Utilities.checkOffsetValid
Summary: NullPointerException at org.netbeans.editor.Utilities.checkOffsetValid
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 234028 235056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-01 10:33 UTC by viggonavarsete
Modified: 2013-08-27 10:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201813


Attachments
stacktrace (1.61 KB, text/plain)
2013-07-01 10:33 UTC, viggonavarsete
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***