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 210415

Summary: NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentView.updateStartEndOffsets
Product: editor Reporter: aldobrucale <aldobrucale>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal CC: FrantaM, gorrus, jglick, KhArtNJava, MackSix, pjiricka, schkovich, stefan79
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 186466
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description aldobrucale 2012-03-30 10:20:59 UTC
This bug was originally marked as duplicate of bug 208524, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201203280401)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
aldobrucale: Refresh Diff window after external changes

GUEST: -trying to view local history of a file.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.lib2.view.DocumentView.updateStartEndOffsets(DocumentView.java:657)
   at org.netbeans.modules.editor.lib2.view.DocumentView.setParent(DocumentView.java:622)
   at javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1330)
   at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:695)
   at org.netbeans.editor.BaseTextUI.modelChanged(BaseTextUI.java:179)
   at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1788)
Comment 1 aldobrucale 2012-03-30 10:21:05 UTC
Created attachment 117534 [details]
stacktrace
Comment 2 stefan79 2012-04-04 10:44:16 UTC
Created attachment 117801 [details]
stacktrace

Exception occured, whe I make CVS-Diff at a Java-File.
Comment 3 Jesse Glick 2012-04-24 03:05:25 UTC
Created attachment 118669 [details]
stacktrace

Diff view in local history tab.
Comment 4 Exceptions Reporter 2012-04-24 03:05:41 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=186466
Comment 5 Marian Mirilovic 2012-04-25 11:45:39 UTC
*** Bug 211031 has been marked as a duplicate of this bug. ***
Comment 6 schkovich 2012-04-25 23:23:27 UTC
Created attachment 118771 [details]
stacktrace

switched from source to history and seleced desired local version
Comment 7 Petr Jiricka 2012-04-27 13:17:26 UTC
Created attachment 118875 [details]
stacktrace

Exploring revisions in the local history tab in the editor (for Java file).
Comment 8 MackSix 2012-05-27 22:32:44 UTC
Created attachment 119922 [details]
stacktrace

Using navigation arrows in "History".
Comment 9 Miloslav Metelka 2012-05-28 09:39:22 UTC
http://hg.netbeans.org/jet-main/rev/5996fb21b80e
Comment 10 Quality Engineering 2012-05-29 05:43:20 UTC
Integrated into 'main-golden', will be available in build *201205290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5996fb21b80e
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #210415 - NullPointerException at org.netbeans.modules.editor.lib2.view.DocumentView.updateStartEndOffsets.