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/4153pull/4154/head
parent
3664fe20c0
commit
5a3401b69f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue