additional nullptr check
This commit is contained in:
parent
569724843e
commit
d423c00115
@ -55,6 +55,11 @@ ObjectManager::ObjectManager() : produceObjects(nullptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ObjectManager::initialize() {
|
void ObjectManager::initialize() {
|
||||||
|
if(produceObjects == nullptr) {
|
||||||
|
sif::error << "ObjectManager: Passed produceObjects functions is"
|
||||||
|
"nullptr!" << std::endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
this->produceObjects();
|
this->produceObjects();
|
||||||
ReturnValue_t return_value = RETURN_FAILED;
|
ReturnValue_t return_value = RETURN_FAILED;
|
||||||
uint32_t error_count = 0;
|
uint32_t error_count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user