Fix crash when the Frame Info window is used then closed then a new
file is loaded.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user