From e1247e81e1125b19312686b8ba6d9be1ccbeba34 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 8 Oct 2018 14:53:33 +0200 Subject: [PATCH] Update utglTF2ImportExport.cpp Check scene pointer against nullptr. --- test/unit/utglTF2ImportExport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/utglTF2ImportExport.cpp b/test/unit/utglTF2ImportExport.cpp index 9587964c8..baeaaab5e 100644 --- a/test/unit/utglTF2ImportExport.cpp +++ b/test/unit/utglTF2ImportExport.cpp @@ -371,6 +371,7 @@ TEST_F(utglTF2ImportExport, importglTF2FromMemory) { aiProcess_FindDegenerates | aiProcess_GenUVCoords | aiProcess_SortByPType; const auto& buff = ReadFile("C:\\Users\\kimkulling\\Downloads\\camel\\camel\\scene.gltf"); const aiScene* Scene = ::aiImportFileFromMemory(&buff[0], buff.size(), flags, ".gltf"); + EXPECT_NE( nullptr, Scene ); } #ifndef ASSIMP_BUILD_NO_EXPORT