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 201503121016) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Linux User Comments: vriha: Trying to search for "sanitizer" in "Add NPM package" dialog while having "Search in package names only" Stacktrace: java.lang.NullPointerException at org.netbeans.modules.javascript.nodejs.ui.libraries.SearchPanel.filterByName(SearchPanel.java:272) at org.netbeans.modules.javascript.nodejs.ui.libraries.SearchPanel$Listener$1.run(SearchPanel.java:469) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694)
Created attachment 152659 [details] stacktrace
Created attachment 152660 [details] output from "npm search sanitizer" Problem seems to be that npm search returns server error...
I am able to reproduce this issue when I break my npm proxy settings (npm search sanitizer works fine for me otherwise). I had forgotten to check for search fail when I added the 'search in package names only' filtering. The exception is not thrown when this check-box is not selected. Fixed by https://hg.netbeans.org/web-main/rev/b15ee8e64341
Integrated into 'main-silver', will be available in build *201503180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b15ee8e64341 User: Jan Stola <jstola@netbeans.org> Log: #251217: Avoiding NPE when npm search fails