Fix possible nullptr exception

- closes https://github.com/assimp/assimp/issues/4418
pull/4567/head
Kim Kulling 2022-06-07 23:33:56 +02:00 committed by GitHub
parent 34cb936844
commit 4fb5cf4ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,7 @@ Ref<Node> FindSkeletonRootJoint(Ref<Skin> &skinRef) {
do {
startNodeRef = parentNodeRef;
parentNodeRef = startNodeRef->parent;
} while (!parentNodeRef->jointName.empty());
} while (nullptr != parentNodeRef && !parentNodeRef->jointName.empty());
return parentNodeRef;
}