Update D3MFOpcPackage.cpp

- Log an error in case of a nullptr-exception in reading out the 3MF-Archive
- closes https://github.com/assimp/assimp/issues/4153
pull/4154/head
Kim Kulling 2021-11-02 10:38:38 +01:00 committed by GitHub
parent 3664fe20c0
commit 5a3401b69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
IOStream *fileStream = mZipArchive->Open(file.c_str()); IOStream *fileStream = mZipArchive->Open(file.c_str());
if (nullptr == fileStream) { if (nullptr == fileStream) {
ai_assert(fileStream != nullptr); ASSIMP_LOG_ERROR("Filestream is nullptr.");
continue; continue;
} }