mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-02 06:40:20 +01:00
debugger: Fix potential null dereference
This commit is contained in:
parent
c9942aa828
commit
0c0f63a2a8
|
|
@ -42,6 +42,9 @@ void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_
|
|||
|
||||
void call_stack_list::OnCallStackListDoubleClicked()
|
||||
{
|
||||
const u32 address = currentItem()->data(Qt::UserRole).value<u32>();
|
||||
Q_EMIT RequestShowAddress(address);
|
||||
if (QListWidgetItem* call_stack_item = currentItem())
|
||||
{
|
||||
const u32 address = call_stack_item->data(Qt::UserRole).value<u32>();
|
||||
Q_EMIT RequestShowAddress(address);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue