Null reference exception fix for setting

This commit is contained in:
defnotken
2025-12-21 16:36:23 -06:00
parent be068ed6d1
commit a66a9407f5

View File

@@ -1915,10 +1915,13 @@ public class SettingsUi : WindowMediatorSubscriberBase
UiSharedService.TextWrapped( UiSharedService.TextWrapped(
$"Storage validation is running: {_currentProgress.Item1}/{_currentProgress.Item2}"); $"Storage validation is running: {_currentProgress.Item1}/{_currentProgress.Item2}");
if (_currentProgress.Item3 != null)
{
UiSharedService.TextWrapped($"Current item: {_currentProgress.Item3.ResolvedFilepath}"); UiSharedService.TextWrapped($"Current item: {_currentProgress.Item3.ResolvedFilepath}");
} }
} }
} }
}
UiSharedService.ColoredSeparator(UIColors.Get("LightlessYellow"), 1.5f); UiSharedService.ColoredSeparator(UIColors.Get("LightlessYellow"), 1.5f);
ImGui.TreePop(); ImGui.TreePop();