[coverity] 1543198 Explicit null dereferenced

This commit is contained in:
akallabeth 2024-04-11 14:49:02 +02:00 committed by Martin Fleisz
parent af1c890295
commit 793145b8c5

View File

@ -1301,7 +1301,7 @@ terminate:
default:
{
std::lock_guard<CriticalSection> lock(sdl->critical);
if (sdl->connection_dialog)
if (sdl->connection_dialog && error_msg)
sdl->connection_dialog->showError(error_msg);
}
break;