addtiional nullptr check

This commit is contained in:
Robin Müller 2020-06-04 21:14:53 +02:00
parent a37a2197d1
commit 5d3b3bae16

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;