From ea082b777dcfe78c4ad22246565a55bcfd128b23 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 14 Jul 2016 01:46:55 +0300 Subject: [PATCH] ...And another crash --- Core/symbol_hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/symbol_hash.c b/Core/symbol_hash.c index 7c4532a..86d5029 100644 --- a/Core/symbol_hash.c +++ b/Core/symbol_hash.c @@ -35,6 +35,7 @@ void GB_map_add_symbol(GB_symbol_map_t *map, uint16_t addr, const char *name) const GB_bank_symbol_t *GB_map_find_symbol(GB_symbol_map_t *map, uint16_t addr) { + if (!map) return NULL; size_t index = GB_map_find_symbol_index(map, addr); if (index < map->n_symbols && map->symbols[index].addr != addr) { index--;