diff --git a/nspector/Common/Helper/UserSettings.cs b/nspector/Common/Helper/UserSettings.cs index 9c60b6e..4050368 100644 --- a/nspector/Common/Helper/UserSettings.cs +++ b/nspector/Common/Helper/UserSettings.cs @@ -41,7 +41,14 @@ public static UserSettings LoadSettings() var filename = GetSettingsFilename(); if (!File.Exists(filename)) return new UserSettings(); - return XMLHelper.DeserializeFromXMLFile(GetSettingsFilename()); + try + { + return XMLHelper.DeserializeFromXMLFile(GetSettingsFilename()); + } + catch + { + return new UserSettings(); + } } } }