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 254242

Summary: NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Product: editor Reporter: michbarsinai <michbarsinai>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219061
Attachments: stacktrace

Description michbarsinai 2015-08-10 12:35:54 UTC
Build: NetBeans IDE Dev (Build 201508050002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Mac OS X

User Comments:
michbarsinai: Clicked a Java text editor pane.




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1770)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.performQuery(AsyncCompletionTask.java:171)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refreshImpl(AsyncCompletionTask.java:202)
   at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refresh(AsyncCompletionTask.java:149)
   at org.netbeans.modules.editor.completion.CompletionImpl.refreshResultSets(CompletionImpl.java:1753)
   at org.netbeans.modules.editor.completion.CompletionImpl.access$2800(CompletionImpl.java:111)
Comment 1 michbarsinai 2015-08-10 12:35:56 UTC
Created attachment 155250 [details]
stacktrace
Comment 2 Dusan Balek 2015-09-01 14:23:50 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c2e7ee2fa99f
Comment 3 Quality Engineering 2015-09-02 05:16:41 UTC
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c2e7ee2fa99f
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #254242 - NullPointerException at javax.swing.text.JTextComponent.getSelectionStart - fixed.