Commit 227ae857 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

retro-runner: Add a missing null check in start()

Check whether the savestate is null before loading extra metadata.

Avoid a runtime warning when starting a game with no savestates.
parent 021dbc73
Pipeline #105681 passed with stages
in 23 minutes and 18 seconds
......@@ -242,7 +242,8 @@ public class Games.RetroRunner : Object, Runner {
loop.start ();
load_extra_savestate_metadata (latest_savestate);
if (latest_savestate != null)
load_extra_savestate_metadata (latest_savestate);
running = true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment