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.
Build: NetBeans IDE Dev (Build 201506100001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14 OS: Windows 7 User Comments: gtzabari: Attempted to close IDE. Exception thrown. Stacktrace: java.lang.NullPointerException at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1770) at org.netbeans.lib.editor.codetemplates.CodeTemplateCompletionProvider$Query.canFilter(CodeTemplateCompletionProvider.java:115) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refreshImpl(AsyncCompletionTask.java:197) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask$1.run(AsyncCompletionTask.java:236) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
Created attachment 154257 [details] stacktrace
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/b8fb2434cbf4 If you have reproducible steps to find why caret is null, I would like to investigate it more. I couldn't reproduce this issue.
Perhaps it makes sense to add an assert() in front of "return false" to help you get future reports of how to reproduce this...
Integrated into 'main-silver', will be available in build *201507030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b8fb2434cbf4 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #253031 - NullPointerException at javax.swing.text.JTextComponent.getSelectionStart - fixed.