mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
debugger: Fix potential null dereference
This commit is contained in:
parent
c9942aa828
commit
0c0f63a2a8
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue