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 181394 - NullPointerException at org.netbeans.editor.Utilities.getRowStartFromLineOffset
Summary: NullPointerException at org.netbeans.editor.Utilities.getRowStartFromLineOffset
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 181453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-02 01:37 UTC by facilityderek
Modified: 2010-03-03 22:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165874


Attachments
stacktrace (685 bytes, text/plain)
2010-03-02 01:37 UTC, facilityderek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description facilityderek 2010-03-02 01:37:52 UTC
Build: NetBeans IDE Dev (Build 201003010200)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP

User Comments:
facilityderek: First start after installing netbeans updates




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.Utilities.getRowStartFromLineOffset(Utilities.java:647)
   at org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.findBreakableLine(LineBreakpointImpl.java:688)
   at org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.classLoaded(LineBreakpointImpl.java:421)
   at org.netbeans.modules.debugger.jpda.breakpoints.ClassBasedBreakpoint.exec(ClassBasedBreakpoint.java:342)
   at org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.exec(LineBreakpointImpl.java:505)
   at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:447)
Comment 1 facilityderek 2010-03-02 01:37:54 UTC
Created attachment 94665 [details]
stacktrace
Comment 2 Martin Entlicher 2010-03-02 06:36:24 UTC
There should likely be openDocument() instead of getDocument() (which returns null when the document was not loaded yet).
Comment 3 Martin Entlicher 2010-03-03 03:12:13 UTC
*** Bug 181453 has been marked as a duplicate of this bug. ***
Comment 4 Martin Entlicher 2010-03-03 08:32:38 UTC
Fixed in changeset:   162126:6dd723f1b5c5
http://hg.netbeans.org/main/rev/6dd723f1b5c5
Comment 5 Quality Engineering 2010-03-03 22:13:16 UTC
Integrated into 'main-golden', will be available in build *201003040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6dd723f1b5c5
User: mentlicher@netbeans.org
Log: #181394 - Use openDocument() instead of getDocument().