Fix crash when the Frame Info window is used then closed then a new

file is loaded.
This commit is contained in:
Collin Kidder
2023-01-12 20:54:53 -05:00
parent 03d9f04e21
commit 816dc70b60
+2
View File
@@ -318,6 +318,8 @@ void FrameInfoWindow::updateDetailsWindow(QString newID)
if (thisFrame.frameId() == static_cast<uint32_t>(targettedID)) frameCache.append(thisFrame);
}
if (frameCache.count() == 0) return; //nothing to do if there are no frames!
const unsigned char *data = reinterpret_cast<const unsigned char *>(frameCache.at(0).payload().constData());
int dataLen = frameCache.at(0).payload().length();