Skip to content

Commit

Permalink
Fix nullref when a props file is not embedded
Browse files Browse the repository at this point in the history
Fixes #749
  • Loading branch information
KirillOsenkov committed Jan 22, 2024
1 parent eede91e commit b6c9791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/StructuredLogViewer.Core/PreprocessedFileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ public string GetPreprocessedText(string sourceFilePath, string projectEvaluatio
}

var sourceText = sourceFileResolver.GetSourceFileText(sourceFilePath);
if (sourceText == null)
{
return string.Empty;
}

var importMap = GetImportMap(projectEvaluationContext);
if (importMap == null)
Expand Down

0 comments on commit b6c9791

Please sign in to comment.