Fix Watson crash on null module names (#3940)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 2 Jun 2023 21:25:57 +0000 (14:25 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Jun 2023 21:25:57 +0000 (14:25 -0700)
src/SOS/SOS.Extensions/ModuleServiceFromDebuggerServices.cs

index 39110a923a11d16a8d3324772e0881a6e4123852..ed88c377057582b99262103491becee34af9368c 100644 (file)
@@ -86,7 +86,7 @@ namespace SOS.Extensions
             {
                 _moduleService = moduleService;
                 ModuleIndex = moduleIndex;
-                FileName = imageName;
+                FileName = imageName ?? string.Empty;
                 ImageBase = imageBase;
                 ImageSize = imageSize;
                 IndexFileSize = indexTimeStamp == InvalidTimeStamp ? null : indexFileSize;