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 255213 - NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Summary: NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Status: RESOLVED DUPLICATE of bug 258581
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 12:13 UTC by Maksim Khramov
Modified: 2016-06-06 13:30 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219872


Attachments
stacktrace (2.08 KB, text/plain)
2015-09-11 12:13 UTC, Maksim Khramov
Details
stacktrace (3.74 KB, text/plain)
2015-10-09 12:49 UTC, aldobrucale
Details
stacktrace (3.84 KB, text/plain)
2015-11-09 10:40 UTC, Exceptions Reporter
Details
stacktrace (3.86 KB, text/plain)
2015-11-10 01:43 UTC, Exceptions Reporter
Details
stacktrace (3.83 KB, text/plain)
2016-03-02 11:02 UTC, michbarsinai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2015-09-11 12:13:32 UTC
Build: NetBeans IDE Dev (Build 201509100002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b11, Java(TM) SE Runtime Environment, 1.8.0_66-b11
OS: Windows 7

User Comments:
mkhramov: Afer closing editor




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1770)
   at org.netbeans.api.java.source.support.SelectionAwareJavaSourceTaskFactory$ChangeListenerImpl.stateChanged(SelectionAwareJavaSourceTaskFactory.java:192)
   at org.netbeans.api.java.source.support.OpenedEditors.fireChangeEvent(OpenedEditors.java:121)
   at org.netbeans.api.java.source.support.OpenedEditors.stateChanged(OpenedEditors.java:177)
   at org.netbeans.api.java.source.support.OpenedEditors$1.propertyChange(OpenedEditors.java:91)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
Comment 1 Maksim Khramov 2015-09-11 12:13:34 UTC
Created attachment 156094 [details]
stacktrace
Comment 2 aldobrucale 2015-10-09 12:49:05 UTC
Created attachment 156644 [details]
stacktrace

I didn't notice the exception balloon
Comment 3 Exceptions Reporter 2015-11-08 19:07:21 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219872
Comment 4 Exceptions Reporter 2015-11-09 10:40:25 UTC
Created attachment 157227 [details]
stacktrace

Unfortunately I did not notice the notification initially so not sure what I was doing at the time. I can say that there was a background task "Unpacking the index for Repository for Oracle Library [nexus]"
Comment 5 Exceptions Reporter 2015-11-10 01:43:23 UTC
Created attachment 157248 [details]
stacktrace

......
Comment 6 Exceptions Reporter 2015-12-01 01:53:32 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219872
Comment 7 michbarsinai 2016-03-02 11:02:22 UTC
Created attachment 158710 [details]
stacktrace

Not really sure. I was pasting some code to test files when I saw this.
Comment 8 Ralph Ruijs 2016-06-06 13:30:29 UTC

*** This bug has been marked as a duplicate of bug 258581 ***