Commit 3c16e52a authored by Sean McBride's avatar Sean McBride
Browse files

Fixed potential null dereference warned by cppcheck

parent 80e7073c
......@@ -1265,7 +1265,7 @@ namespace
void Send(int msg, int rank, Task* task)
{
if(msg==TaskFinished)
if(task && (msg==TaskFinished))
{
PRINT("Done in "<<task->Point->GetNumSteps()<<" steps "<<task->NumHops<<" hops");
}
......
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