Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 268405 - NullPointerException at org.netbeans.modules.javascript.nodejs.exec.NpmExecutable.stopRunningScript
NullPointerException at org.netbeans.modules.javascript.nodejs.exec.NpmExecut...
Product: javascript
Classification: Unclassified
Component: Node.js
All All
: P3 with 2 votes (vote)
: 8.2
Assigned To: Tomas Mysik
EXCEPTIONS_REPORT 82patch1-verified
Depends on:
  Show dependency treegraph
Reported: 2016-10-07 11:49 UTC by ravshansbox
Modified: 2016-12-13 14:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT

stacktrace (657 bytes, text/plain)
2016-10-07 11:49 UTC, ravshansbox

Note You need to log in before you can comment on or make changes to this bug.
Description ravshansbox 2016-10-07 11:49:39 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: OpenJDK 64-Bit Server VM, 25.91-b14, OpenJDK Runtime Environment, 1.8.0_91-8u91-b14-3ubuntu1~16.04.1ppa1-b14
OS: Linux

User Comments:
GUEST: Tried to run an npm script from PHP project context menu.  Worked in 8.0.2, script hasn't changed between NB versions.

GUEST: Just trying to start an npm script off the context menu for a PHP project.

ravshansbox: problem on running npm script

   at org.netbeans.modules.javascript.nodejs.exec.NpmExecutable.stopRunningScript(
   at org.netbeans.modules.javascript.nodejs.exec.NpmExecutable.runScript(
   at org.netbeans.modules.javascript.nodejs.ui.actions.NpmRunScriptAction$1$
   at org.openide.util.RequestProcessor$
   at org.netbeans.modules.openide.util.GlobalLookup.execute(
   at org.openide.util.lookup.Lookups.executeWith(
Comment 1 ravshansbox 2016-10-07 11:49:41 UTC
Created attachment 162392 [details]
Comment 2 Exceptions Reporter 2016-10-20 23:41:35 UTC
This bug already has 5 duplicates 
Comment 3 Tomas Mysik 2016-10-21 07:15:45 UTC
Caused by fixing issue #257237. This problem occurs in other project types than HTML5 project (so e.g. PHP project). Will fix it and mark as a patch candidate for NB 8.2 - it would be great if you could anyone the fix once it appears in a dev build.

Comment 4 Tomas Mysik 2016-10-21 07:22:44 UTC
Fixed, please verify. Thanks.
Comment 5 Quality Engineering 2016-10-22 02:16:29 UTC
Integrated into 'main-silver', will be available in build *201610220002* on (upload may still be in progress)

User: Tomas Mysik <>
Log: #268405 - NullPointerException at org.netbeans.modules.javascript.nodejs.exec.NpmExecutable.stopRunningScript

Caused by fixing issue #257237.
Comment 6 aner 2016-10-24 14:21:20 UTC
This fixes the issue for me using version
Comment 7 Tomas Mysik 2016-10-25 08:38:44 UTC
(In reply to aner from comment #6)
> This fixes the issue for me using version

Thanks a lot for verification!
Comment 8 Tomas Mysik 2016-12-03 14:39:29 UTC
Transplanted to the releases repo branch release82:

Comment 9 Stepan Zebra 2016-12-13 14:22:34 UTC
verified in NB 8.2 Patch 1

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo