diff --git a/Tools/Replay/MsgHandler.h b/Tools/Replay/MsgHandler.h index 852e299b68..67dc1e772f 100644 --- a/Tools/Replay/MsgHandler.h +++ b/Tools/Replay/MsgHandler.h @@ -104,6 +104,10 @@ template bool MsgHandler::field_value(uint8_t *msg, const char *label, R &ret) { struct format_field_info *info = find_field_info(label); + if (info == NULL) { + return false; + } + uint8_t offset = info->offset; if (offset == 0) { return false;