Before the fix
Blank screen! Restoring the saved state interrupts startup.
Demo 01 / State recovery
Own demonstration · Fictional dataBoth versions receive exactly the same saved settings. Switch the test case and see how they respond.
! Restoring the saved state interrupts startup.
✓ The screen opens with valid settings.
The app tried to use saved settings without checking them. An incomplete value caused an error before the screen could render.
The repair checks the format and fields. If the state is invalid, it uses default settings so the app can open.
Success condition: with invalid state, “Class schedule” and its list appear. With valid state, both versions still work.