diff --git a/Core/debugger.c b/Core/debugger.c index 51110e6..f78c544 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -45,7 +45,7 @@ static const char *value_to_string(GB_gameboy_t *gb, uint16_t value, bool prefer } /* Avoid overflow */ - if (strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) > 240) { symbol = NULL; }