the bug happen in IsResourceObjectValid of DrawElement.cpp when I use UE's Editor

static bool IsResourceObjectValid(UObject*& InObject)
{
if (InObject != nullptr && (InObject->IsPendingKillOrUnreachable() || InObject->HasAnyFlags(RF_BeginDestroyed)))
{
UE_LOG(LogSlate, Warning, TEXT(“Attempted to access resource for %s which is pending kill, unreachable or pending destroy”), *InObject->GetName());
return false;
}

return true;

}