Closed Eijebong closed 2 years ago
Sentry ref: DIVVUN-MANAGER-WINDOWS-61
DIVVUN-MANAGER-WINDOWS-61
Repro steps:
%APPDATA%\Divvun Manager
settings.json
Reason:
This fails because the settings don't match the required model:
https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/Models/Settings.cs#L34
Then this is called on startup: https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/Models/Settings.cs#L44 by https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/App.xaml.cs#L183
which tries to access file.language but file is a null ref.
file.language
Possible solution: Catch the JSON deserialize error and put a default object in _state in that case.
_state
Other sentry ref caused by this: DIVVUN-MANAGER-WINDOWS-3Y
DIVVUN-MANAGER-WINDOWS-3Y
Sentry ref:
DIVVUN-MANAGER-WINDOWS-61
Repro steps:
%APPDATA%\Divvun Manager
settings.json
Reason:
This fails because the settings don't match the required model:
https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/Models/Settings.cs#L34
Then this is called on startup: https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/Models/Settings.cs#L44 by https://github.com/divvun/divvun-manager-windows/blob/849888f3b88ceb0a32a0ee8e1f6e6560ec26b1ba/Divvun.Installer/App.xaml.cs#L183
which tries to access
file.language
but file is a null ref.Possible solution: Catch the JSON deserialize error and put a default object in
_state
in that case.