diff --git a/tools/assimp_view/MessageProc.cpp b/tools/assimp_view/MessageProc.cpp index 3e9cecf14..051659648 100644 --- a/tools/assimp_view/MessageProc.cpp +++ b/tools/assimp_view/MessageProc.cpp @@ -1026,6 +1026,10 @@ void PopulateExportMenu() //------------------------------------------------------------------------------- void DoExport(size_t formatId) { + if (!g_szFileName) { + return; + } + Exporter exp; const aiExportFormatDesc* const e = exp.GetExportFormatDescription(formatId); assert(e);