if( this == nullptr )
by this it means that you are trying to check a object itself inside it’s own body.
just imagine, what will happen if the object already has been deleted.
try this :
if(dbdatacontainer != nullptr))// dbdatacontainer.IsValid()
{
if(SomeObject->IsValidLowLevel()) //if not included, game sometimes crashed
{
//Actually do stuff with SomeObject
}
}
better explaintation: