Browse Source

do not raise ParseInformationUpdated event if parseInfo is null

newNRvisualizers
Siegfried Pammer 14 years ago
parent
commit
7c2a0affbb
  1. 3
      src/Main/Base/Project/Src/Services/ParserService/ParserService.cs

3
src/Main/Base/Project/Src/Services/ParserService/ParserService.cs

@ -463,7 +463,8 @@ namespace ICSharpCode.SharpDevelop.Parser
if (parseInfo != null && this.activeListeners != null) if (parseInfo != null && this.activeListeners != null)
this.activeListeners(parseInfo, null); this.activeListeners(parseInfo, null);
} }
RaiseParseInformationUpdated(new ParseInformationEventArgs(parseInfo, null)); if (parseInfo != null)
RaiseParseInformationUpdated(new ParseInformationEventArgs(parseInfo, null));
} }
void SnapshotFileContentForAsyncOperation(ref ITextSource fileContent, out bool lookupOpenFileOnTargetThread) void SnapshotFileContentForAsyncOperation(ref ITextSource fileContent, out bool lookupOpenFileOnTargetThread)

Loading…
Cancel
Save