diff --git a/DataInterfaceConsole/Actions/Settings/SettingsHandler.cs b/DataInterfaceConsole/Actions/Settings/SettingsHandler.cs index acb593a..201ea9d 100644 --- a/DataInterfaceConsole/Actions/Settings/SettingsHandler.cs +++ b/DataInterfaceConsole/Actions/Settings/SettingsHandler.cs @@ -58,7 +58,7 @@ public void Save() public void Tick() { var di = Program.instance.di; - if (!di.IsValid()) + if (di == null || !di.IsValid()) return; try