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 258512

Summary: NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: issues
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223168
Attachments: stacktrace

Description Exceptions Reporter 2016-03-24 02:59:46 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
GUEST: Dont know

   at javax.swing.text.JTextComponent.getCaretPosition(
   at org.netbeans.modules.cnd.refactoring.completion.implmethod.CsmImplementsMethodCompletionProvider$Query.canFilter(
   at java.awt.event.InvocationEvent.dispatch(
   at java.awt.EventQueue.dispatchEventImpl(
Comment 1 Exceptions Reporter 2016-03-24 02:59:48 UTC
Created attachment 158984 [details]
Comment 2 Alexander Simon 2016-03-25 11:52:14 UTC
Completion query violate a contract of canFilter method:
- component should have not null caret.
Comment 3 Alexander Simon 2016-03-25 11:54:05 UTC
Probably fix of the bug #254242 is not complete.