Skip to content

Commit 4acda62

Browse files
committed
Merge pull request #407 from zhengbli/i393
Add null check for NodejsFileNode.Analyze
2 parents 289de92 + 60960b8 commit 4acda62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nodejs/Product/Nodejs/Project/NodejsFileNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
4141
}
4242

4343
internal void Analyze() {
44-
if (ProjectMgr.Analyzer != null && ShouldAnalyze) {
44+
if (ProjectMgr != null && ProjectMgr.Analyzer != null && ShouldAnalyze) {
4545
ProjectMgr.Analyzer.AnalyzeFile(Url, !IsNonMemberItem);
4646
ProjectMgr._requireCompletionCache.Clear();
4747
}

0 commit comments

Comments
 (0)