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 254667 - NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Summary: NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 19:11 UTC by jarome
Modified: 2015-08-25 09:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219401


Attachments
stacktrace (3.45 KB, text/plain)
2015-08-24 19:11 UTC, jarome
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jarome 2015-08-24 19:11:55 UTC
Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Mac OS X

User Comments:
jarome: I tried to unset a breakpoint while my program had a dialog box displayed




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1644)
   at org.netbeans.modules.debugger.jpda.projectsui.EditorContextImpl.getCurrentClassDeclaration(EditorContextImpl.java:730)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
Comment 1 jarome 2015-08-24 19:11:57 UTC
Created attachment 155593 [details]
stacktrace
Comment 2 Martin Entlicher 2015-08-25 09:50:49 UTC
This must be a bug of the editor.
The user clicked somewhere into the gutter:
at org.netbeans.editor.GlyphGutter$GutterMouseListener.mouseClicked(GlyphGutter.java:962)
but when I try to find out where, the component's caret is null.