Commit eeee0ea1 authored by Boudewijn Rempt's avatar Boudewijn Rempt

CID 248412: Explicit null dereferenced (FORWARD_NULL)

18. var_deref_model: Passing null pointer this->m_runnableJob to run,
which dereferences it. (The dereference happens because this is a virtual
function call.)
parent cc80eb9e
......@@ -88,12 +88,11 @@ public:
KIS_ASSERT(m_atomicType == Type::STROKE ||
m_atomicType == Type::SPONTANEOUS);
m_runnableJob->run();
if (m_runnableJob) m_runnableJob->run();
}
setDone();
m_updaterContext->doSomeUsefulWork();
// may flip the current state from Waiting -> Running again
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment