mirror of
https://github.com/assimp/assimp.git
synced 2026-01-18 17:11:20 +01:00
Test against possible nullptr dereferencing (#6430)
Co-authored-by: Kim Kulling <kim.kulling@draeger.com>
This commit is contained in:
@@ -1838,6 +1838,10 @@ void MDLImporter::GenerateOutputMeshes_3DGS_MDL7(
|
||||
const unsigned int iNumOutBones = pcHeader->bones_num;
|
||||
|
||||
for (std::vector<aiMaterial *>::size_type i = 0; i < shared.pcMats.size(); ++i) {
|
||||
if (splitGroupData.aiSplit == nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!splitGroupData.aiSplit[i]->empty()) {
|
||||
|
||||
// allocate the output mesh
|
||||
|
||||
Reference in New Issue
Block a user