From cfa9f381555f6559624fd94e58c1ca0ad1f236b9 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 29 Nov 2015 17:07:49 -0800 Subject: [PATCH] - another bugfix from coverity --- source/shared_lib/sources/platform/sdl/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/platform/sdl/thread.cpp b/source/shared_lib/sources/platform/sdl/thread.cpp index 06f0b7e2..2439fe03 100644 --- a/source/shared_lib/sources/platform/sdl/thread.cpp +++ b/source/shared_lib/sources/platform/sdl/thread.cpp @@ -247,7 +247,7 @@ void Thread::start() { BaseThread *base_thread = dynamic_cast(this); if(base_thread) base_thread->setStarted(true); - string uniqueId = base_thread->getUniqueID(); + string uniqueId = (base_thread ? base_thread->getUniqueID() : "new_base_thread_prev_null"); thread = SDL_CreateThread(beginExecution, uniqueId.c_str(), this); if(thread == NULL) { if(base_thread) base_thread->setStarted(false);