Commit 2c2067b0 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Check if we have a scheduler

parent bf215d53
......@@ -14,7 +14,8 @@ namespace ITA
IWorkerInterface::IWorkerInterface ( ISchedulerInterface* pParent ) :
m_pParentScheduler ( pParent )
{
m_eFieldOfDuty = pParent->getFieldOfDuty();
if ( pParent != nullptr)
m_eFieldOfDuty = pParent->getFieldOfDuty();
}
void CWorkerFactory::registerWorker ( const std::string& type, CreateCallback createFunction )
......
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