Skip to content

Commit

Permalink
Merge pull request #407 from zhengbli/i393
Browse files Browse the repository at this point in the history
Add null check for NodejsFileNode.Analyze
  • Loading branch information
mousetraps committed Sep 2, 2015
2 parents 289de92 + 60960b8 commit 4acda62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nodejs/Product/Nodejs/Project/NodejsFileNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
}

internal void Analyze() {
if (ProjectMgr.Analyzer != null && ShouldAnalyze) {
if (ProjectMgr != null && ProjectMgr.Analyzer != null && ShouldAnalyze) {
ProjectMgr.Analyzer.AnalyzeFile(Url, !IsNonMemberItem);
ProjectMgr._requireCompletionCache.Clear();
}
Expand Down

0 comments on commit 4acda62

Please sign in to comment.