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 214218

Summary: NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateTextLimitLine
Product: editor Reporter: Milutin Kristofic <mkristofic>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal CC: junqueira_raphael, mmirilovic, musilt2, tmysik
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 189505
Attachments: stacktrace
search set font changes
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Milutin Kristofic 2012-06-14 14:20:35 UTC
Build: NetBeans IDE Dev (Build 20120614-36bb0f394df1)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.4-b02, Java(TM) SE Runtime Environment, 1.6.0_29-b11
OS: Linux

User Comments:
mkristofic: First time open replacebar




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateTextLimitLine(DocumentViewOp.java:816)
   at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateCharMetrics(DocumentViewOp.java:862)
   at org.netbeans.modules.editor.lib2.view.DocumentViewOp.access$100(DocumentViewOp.java:103)
   at org.netbeans.modules.editor.lib2.view.DocumentViewOp$3.run(DocumentViewOp.java:577)
   at org.netbeans.modules.editor.lib2.view.DocumentView.runTransaction(DocumentView.java:229)
   at org.netbeans.modules.editor.lib2.view.DocumentView$1.run(DocumentView.java:242)
Comment 1 Milutin Kristofic 2012-06-14 14:21:09 UTC
Created attachment 120858 [details]
stacktrace
Comment 2 Milutin Kristofic 2012-06-14 14:26:00 UTC
reproducible, at every start
Comment 3 Milutin Kristofic 2012-06-14 14:45:59 UTC
Created attachment 120859 [details]
search set font changes

Only When I have this change in searchcomboboxeditor, then it throws nullpointer exception.
Comment 4 Miloslav Metelka 2012-06-18 14:55:40 UTC
http://hg.netbeans.org/jet-main/rev/6ed992b990d3
Comment 5 Jiri Prox 2012-06-20 11:33:43 UTC
This issue does not occur in 7.2 - the problematic code is present there, but the code which uses it was committed after branching
Comment 6 Quality Engineering 2012-06-22 04:50:00 UTC
Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6ed992b990d3
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #214218 - NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateTextLimitLine.
Comment 7 Tomas Mysik 2012-06-26 12:20:07 UTC
Created attachment 121364 [details]
stacktrace

ctrl + h in js file with selected word
Comment 8 Tomas Mysik 2012-06-26 12:23:05 UTC
Is it possible that this issue happens in 7.2 too? Please, have a look at report ID 595178 [1].

Thanks.
[1] http://statistics.netbeans.org/exceptions/detail.do?id=189505

Product Version: NetBeans IDE 7.2 RC1 (Build 201206242201)
Java: 1.6.0_33; Java HotSpot(TM) 64-Bit Server VM 20.8-b03
System: Linux version 3.4.4-030404-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 9 Jiri Prox 2012-06-26 12:41:08 UTC
verified in trunk

Milo, can you please integrate the fix to the 7.2 releases branch. Just for sure, it looks like the bug is reproducible in 7.2 RC1
Comment 10 Tomas Mysik 2012-06-29 08:17:05 UTC
Created attachment 121538 [details]
stacktrace

perhaps CTRL + F in a java file
Comment 11 Tomas Mysik 2012-06-29 10:08:39 UTC
(In reply to comment #10)
> Created attachment 121538 [details]
> stacktrace
> 
> perhaps CTRL + F in a java file

FYI just happend to me in the final RC1 which I downloaded from netbeans.org.
Comment 12 Tomas Mysik 2012-06-30 09:05:07 UTC
Created attachment 121600 [details]
stacktrace

ctrl + f in a latte file (php template)
Comment 13 Exceptions Reporter 2012-07-01 08:26:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=189505
Comment 14 Exceptions Reporter 2012-07-02 07:05:09 UTC
Created attachment 121640 [details]
stacktrace
Comment 15 Exceptions Reporter 2012-07-02 14:50:06 UTC
Created attachment 121659 [details]
stacktrace
Comment 16 Tomas Danek 2012-07-03 08:54:23 UTC
so far fixed in 7.3 , making 7.2 hr fix candidate.
Comment 17 Miloslav Metelka 2012-07-03 09:33:57 UTC
In release72:
6ed992b990d3 transplanted to 6e7b5ce2ffb7
Comment 18 Miloslav Metelka 2012-07-04 16:09:06 UTC
*** Bug 215175 has been marked as a duplicate of this bug. ***
Comment 19 Quality Engineering 2012-07-10 06:42:39 UTC
Integrated into 'releases', will be available in build *201207092359* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/6e7b5ce2ffb7
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #214218 - NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateTextLimitLine.
(transplanted from 6ed992b990d3adcd04e7b439cd543fff2c3e1937)