diff --git a/src/modules/imageresizer/ui/Properties/Settings.cs b/src/modules/imageresizer/ui/Properties/Settings.cs index b01fd1b18c..7c3eadf750 100644 --- a/src/modules/imageresizer/ui/Properties/Settings.cs +++ b/src/modules/imageresizer/ui/Properties/Settings.cs @@ -408,7 +408,14 @@ namespace ImageResizer.Properties } string jsonData = _fileSystem.File.ReadAllText(SettingsPath); - Settings jsonSettings = JsonSerializer.Deserialize(jsonData)?.Properties; + var jsonSettings = new Settings(); + try + { + jsonSettings = JsonSerializer.Deserialize(jsonData)?.Properties; + } + catch (JsonException) + { + } // Needs to be called on the App UI thread as the properties are bound to the UI. App.Current.Dispatcher.Invoke(() =>