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 - NullPointerException at javax.swing.text.View.getStartOffset
Summary: NullPointerException at javax.swing.text.View.getStartOffset
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords: 8.0_HR_FIX
: 236525 236530 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-30 04:27 UTC by dbcurtis
Modified: 2014-02-26 03:03 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201226


Attachments
stacktrace (3.74 KB, text/plain)
2013-06-30 04:27 UTC, dbcurtis
Details
stacktrace (3.43 KB, text/plain)
2013-08-13 07:48 UTC, dbcurtis
Details
stacktrace (3.43 KB, text/plain)
2013-08-23 20:58 UTC, Jesse Glick
Details
stacktrace (3.43 KB, text/plain)
2013-09-16 16:18 UTC, javydreamercsw
Details
stacktrace (3.43 KB, text/plain)
2013-09-17 22:18 UTC, javydreamercsw
Details
stacktrace (3.74 KB, text/plain)
2013-10-03 22:18 UTC, javydreamercsw
Details
stacktrace (3.43 KB, text/plain)
2013-11-19 15:36 UTC, Jesse Glick
Details
stacktrace (3.43 KB, text/plain)
2013-11-19 15:39 UTC, Jesse Glick
Details

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




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.View.getStartOffset(View.java:811)
   at org.netbeans.modules.editor.lib2.view.WrapInfoUpdater.initWrapInfo(WrapInfoUpdater.java:148)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.buildWrapLines(ParagraphViewChildren.java:386)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.updateLayout(ParagraphViewChildren.java:380)
   at org.netbeans.modules.editor.lib2.view.ParagraphView.updateLayoutAndScheduleRepaint(ParagraphView.java:277)
   at org.netbeans.modules.editor.lib2.view.ParagraphView.checkLayoutUpdate(ParagraphView.java:263)
Comment 1 dbcurtis 2013-06-30 04:27:15 UTC
Created attachment 136506 [details]
stacktrace
Comment 2 dbcurtis 2013-08-13 07:48:40 UTC
Created attachment 138624 [details]
stacktrace

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

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

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

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]
stacktrace

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]
stacktrace

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

Still trying to display Projects tab.
Comment 12 Exceptions Reporter 2014-02-19 23:34:31 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=201226
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.

http://hg.netbeans.org/jet-main/rev/84c43c2a47ee
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.

Changeset: http://hg.netbeans.org/releases/rev/74d36257196f
User: Miloslav Metelka <mmetelka@netbeans.org>
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 http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/84c43c2a47ee
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #232038 - NullPointerException at javax.swing.text.View.getStartOffset().