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 232038

Summary: NullPointerException at javax.swing.text.View.getStartOffset
Product: editor Reporter: dbcurtis <dbcurtis>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Severity: normal CC: brucekhaddon, chrislovsund, dengr, epicmaster, err, gtzabari, javydreamercsw, jglick, kumarldh, musilt2, rherschke, serras, tommcatt
Priority: P1 Keywords: 8.0_HR_FIX
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 201226
Attachments: stacktrace

Description dbcurtis 2013-06-30 04:27:13 UTC
Build: NetBeans IDE Dev (Build 201306262301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 8

User Comments:
GUEST: Edit javacode

dbcurtis: Just editing

   at javax.swing.text.View.getStartOffset(
   at org.netbeans.modules.editor.lib2.view.WrapInfoUpdater.initWrapInfo(
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.buildWrapLines(
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.updateLayout(
   at org.netbeans.modules.editor.lib2.view.ParagraphView.updateLayoutAndScheduleRepaint(
   at org.netbeans.modules.editor.lib2.view.ParagraphView.checkLayoutUpdate(
Comment 1 dbcurtis 2013-06-30 04:27:15 UTC
Created attachment 136506 [details]
Comment 2 dbcurtis 2013-08-13 07:48:40 UTC
Created attachment 138624 [details]

ediiting a file, just had a prior error
Comment 3 Jesse Glick 2013-08-23 20:58:07 UTC
Created attachment 139156 [details]

Had run a Maven build which I aborted.
Comment 4 javydreamercsw 2013-09-16 16:18:04 UTC
Created attachment 140138 [details]

Editing code while project is buildin with dependencies.
Comment 5 javydreamercsw 2013-09-17 22:18:04 UTC
Created attachment 140190 [details]

Editing code.
Comment 6 Milutin Kristofic 2013-10-01 12:29:24 UTC
*** Bug 236525 has been marked as a duplicate of this bug. ***
Comment 7 javydreamercsw 2013-10-03 22:18:59 UTC
Created attachment 140780 [details]

Deleting character from editor after pasting.
Comment 8 err 2013-11-07 17:44:40 UTC
I got this as well. My stacktrace is the same as most...

BTW, I think bug 236530 is a duplicate.
Comment 9 Miloslav Metelka 2013-11-12 15:11:48 UTC
*** Bug 236530 has been marked as a duplicate of this bug. ***
Comment 10 Jesse Glick 2013-11-19 15:36:52 UTC
Created attachment 142364 [details]

Trying to display Projects tab.
Comment 11 Jesse Glick 2013-11-19 15:39:52 UTC
Created attachment 142365 [details]

Still trying to display Projects tab.
Comment 12 Exceptions Reporter 2014-02-19 23:34:31 UTC
This bug already has 50 duplicates 
Comment 13 Miloslav Metelka 2014-02-24 13:09:14 UTC
I'm still working on a fix. Hope to have it ready tonight.
Comment 14 Miloslav Metelka 2014-02-24 16:09:24 UTC
It should be fixed (I still can't reproduce though). In the end the problem was somewhere else than I expected.
Comment 15 Milutin Kristofic 2014-02-24 16:17:27 UTC
Code seems ok. I suggest to transplant.
Comment 16 Miloslav Metelka 2014-02-24 17:39:08 UTC
Integrated into release80:
84c43c2a47ee transplanted to 74d36257196f
Comment 17 Quality Engineering 2014-02-25 01:36:41 UTC
Integrated into 'releases/release80', will be available in build *201402242200* or newer. Wait for official and publicly available build.

User: Miloslav Metelka <>
Log: #232038 - NullPointerException at javax.swing.text.View.getStartOffset().
(transplanted from 84c43c2a47ee37d927a92ba2ef23e3e492615c58)
Comment 18 Quality Engineering 2014-02-26 03:03:36 UTC
Integrated into 'main-silver', will be available in build *201402260001* on (upload may still be in progress)

User: Miloslav Metelka <>
Log: #232038 - NullPointerException at javax.swing.text.View.getStartOffset().