addtiional nullptr check
This commit is contained in:
parent
a37a2197d1
commit
5d3b3bae16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user