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
Depends on:
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

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

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

   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.