mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12: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()
|
void call_stack_list::OnCallStackListDoubleClicked()
|
||||||
{
|
{
|
||||||
const u32 address = currentItem()->data(Qt::UserRole).value<u32>();
|
if (QListWidgetItem* call_stack_item = currentItem())
|
||||||
Q_EMIT RequestShowAddress(address);
|
{
|
||||||
|
const u32 address = call_stack_item->data(Qt::UserRole).value<u32>();
|
||||||
|
Q_EMIT RequestShowAddress(address);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue