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 - NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Summary: NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-24 02:59 UTC by Exceptions Reporter
Modified: 2016-03-25 11:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223168


Attachments
stacktrace (1.57 KB, text/plain)
2016-03-24 02:59 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1644)
   at org.netbeans.modules.cnd.refactoring.completion.implmethod.CsmImplementsMethodCompletionProvider$Query.canFilter(CsmImplementsMethodCompletionProvider.java:145)
   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)
Comment 1 Exceptions Reporter 2016-03-24 02:59:48 UTC
Created attachment 158984 [details]
stacktrace
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.