From 1ecc9093d5d1b69b2a5cd9dc6ffdfbae17d7ee80 Mon Sep 17 00:00:00 2001 From: Cristian Sandu Date: Tue, 14 Oct 2014 22:47:57 +0300 Subject: [PATCH] Fix crash on iOS; was crashing when init with nil core --- apple/iOS/menu.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apple/iOS/menu.m b/apple/iOS/menu.m index aef56da387..a347056a26 100644 --- a/apple/iOS/menu.m +++ b/apple/iOS/menu.m @@ -808,6 +808,10 @@ static void RunActionSheet(const char* title, const struct string_list* items, U _pathToSave = BOXSTRING(g_defaults.config_path); } + // If we initialized with a nil core(like when starting up) driver.menu will be NULL + if (!driver.menu) + return NULL; + setting_data = (rarch_setting_t*)driver.menu->list_settings; if (!setting_data)