Skip to content

Commit

Permalink
Fix invalid access to optioanl in debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Jan 25, 2025
1 parent 0f4af5c commit 8f3c355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/ecode/plugins/debugger/debuggerclientlistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void DebuggerClientListener::debuggeeStopped( const StoppedEvent& event ) {
}
}

mCurrentThreadId = mStoppedData->threadId ? *mStoppedData->threadId : 1;
mCurrentThreadId = mStoppedData ? *mStoppedData->threadId : 1;
mStoppedData = event;

if ( mPausedToRefreshBreakpoints ) {
Expand All @@ -269,7 +269,7 @@ void DebuggerClientListener::debuggeeStopped( const StoppedEvent& event ) {
return;
}

changeThread( mStoppedData->threadId ? *mStoppedData->threadId : 1 );
changeThread( mStoppedData ? *mStoppedData->threadId : 1 );

mClient->threads();
mClient->stackTrace( mCurrentThreadId );
Expand Down

0 comments on commit 8f3c355

Please sign in to comment.