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: IDE for C, C++, and Fortran (Oracle Developer Studio 12.5 [2016/04/22 59975fe2d5d6]) VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14 OS: SunOS User Comments: soldatov: modify c++ file Stacktrace: java.lang.NullPointerException at javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1644) at org.netbeans.modules.cnd.completion.cplusplus.CsmCompletionProvider$ToolTipQuery.canFilter(CsmCompletionProvider.java:507) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refreshImpl(AsyncCompletionTask.java:197) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refresh(AsyncCompletionTask.java:149) at org.netbeans.modules.editor.completion.CompletionImpl.refreshResultSets(CompletionImpl.java:1751) at org.netbeans.modules.editor.completion.CompletionImpl.access$2800(CompletionImpl.java:111)
Created attachment 159480 [details] stacktrace
I believe that NPE is consequence of: INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@2b26d83a, mimeType='text/x-c++', kitClass=null, length=97, version=10, file=org.netbeans.modules.cnd.source.CCDataObject@3ca2471d[/export/files/NB/CppApplication_1/main.cpp@da0e3936:4e7ece75] It should be fixed in the bug 262248.