From 816dc70b6053ee71f3af09fc048eee6c9bd80541 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Thu, 12 Jan 2023 20:54:53 -0500 Subject: [PATCH] Fix crash when the Frame Info window is used then closed then a new file is loaded. --- re/frameinfowindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/re/frameinfowindow.cpp b/re/frameinfowindow.cpp index 225d963..3701210 100644 --- a/re/frameinfowindow.cpp +++ b/re/frameinfowindow.cpp @@ -318,6 +318,8 @@ void FrameInfoWindow::updateDetailsWindow(QString newID) if (thisFrame.frameId() == static_cast(targettedID)) frameCache.append(thisFrame); } + if (frameCache.count() == 0) return; //nothing to do if there are no frames! + const unsigned char *data = reinterpret_cast(frameCache.at(0).payload().constData()); int dataLen = frameCache.at(0).payload().length();