Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Check for null during node process disposal. Fixes #1061
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Jul 3, 2017
1 parent 76928bc commit 429a432
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ protected virtual void Dispose(bool disposing)

// Make sure the Node process is finished
// TODO: Is there a more graceful way to end it? Or does this still let it perform any cleanup?
if (!_nodeProcess.HasExited)
if (_nodeProcess != null && !_nodeProcess.HasExited)
{
_nodeProcess.Kill();
}
Expand Down

0 comments on commit 429a432

Please sign in to comment.