additional nullptr check

This commit is contained in:
Robin Müller 2020-06-04 21:14:35 +02:00
parent 569724843e
commit d423c00115
1 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,11 @@ ObjectManager::ObjectManager() : produceObjects(nullptr) {
}
void ObjectManager::initialize() {
if(produceObjects == nullptr) {
sif::error << "ObjectManager: Passed produceObjects functions is"
"nullptr!" << std::endl;
return;
}
this->produceObjects();
ReturnValue_t return_value = RETURN_FAILED;
uint32_t error_count = 0;