Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

Fix null safety in Safe method in SystemInfoService

itsfatduck625edde023a3
diff --git a/optimizerDuck/src/Core/Services/SystemInfoService.cs b/optimizerDuck/src/Core/Services/SystemInfoService.cs
index 93e989a..a0bbf89 100644
--- a/optimizerDuck/src/Core/Services/SystemInfoService.cs
+++ b/optimizerDuck/src/Core/Services/SystemInfoService.cs
@@ -777,5 +777,5 @@ public static class SystemInfoService
return panel;
}
- private static string Safe(string s) => Markup.Escape(s);
+ private static string Safe(string? s) => Markup.Escape(s ?? "");
}
\ No newline at end of file