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 256942

Summary: NullPointerException at javax.swing.text.JTextComponent.getSelectionStart
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: bht, clinuxrulz, crosati, dhaowoods, gtzabari, Leperous, matvei, OndrejM, scanti, stefan79
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218805
Attachments: stacktrace
stacktrace

Description Exceptions Reporter 2015-12-03 07:15:04 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Windows 8.1

User Comments:
gtzabari: Clicked in editor.

dhaowoods: after mvn install

GUEST: .

clinuxrulz: Walked away to make a cup of coffee

GUEST: ...

GUEST: <?????????????????????????>a




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1770)
   at org.netbeans.lib.editor.codetemplates.SurroundWithFix.getFixes(SurroundWithFix.java:69)
   at org.netbeans.lib.editor.codetemplates.AbbrevDetection$2.run(AbbrevDetection.java:451)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
Comment 1 Exceptions Reporter 2015-12-03 07:15:06 UTC
Created attachment 157635 [details]
stacktrace
Comment 2 stefan79 2016-09-16 06:30:53 UTC
Created attachment 162072 [details]
stacktrace

Exception occured while CVS-Diff.