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: NetBeans IDE Dev (Build 201005040200) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: fortruth: when I create a new template in code Templates with html <script type="text/javascript> ${cursor} </ when type / it happened. GUEST: I was adding code template text Stacktrace: java.lang.NullPointerException at org.netbeans.modules.javascript.editing.JsIndex.getUnknownFunctions(JsIndex.java:242) at org.netbeans.modules.javascript.editing.JsIndex.getAllNamesTruncated(JsIndex.java:138) at org.netbeans.modules.javascript.editing.JsCodeCompletion.completeFunctions(JsCodeCompletion.java:1217) at org.netbeans.modules.javascript.editing.JsCodeCompletion.complete(JsCodeCompletion.java:469) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:607) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:595)
Created attachment 98630 [details] stacktrace
I like NPEs on line like this: context.getSnapshot().getSource().getFileObject().getURL().toExternalForm(); :-) I've iffed all the expressions possibly returning null in web-main#7608447e956e