callstack generation fixed 06/21706/1
Cedric Delamarre [Wed, 3 Mar 2021 14:48:29 +0000 (15:48 +0100)]
Change-Id: I644038d8e694450e10d28bd9cf736f46f9e0f5a7

scilab/modules/ast/src/cpp/ast/debugmanager.cpp

index 7180361..f9828af 100644 (file)
@@ -381,7 +381,7 @@ void DebuggerManager::generateCallStack()
         row.functionName = tmp;
         FREE(tmp);
         row.functionLine = it_line->m_line - 1;
-        if(callstackAddFile(&row, *it_name->m_file_name))
+        if(it_name->m_file_name && callstackAddFile(&row, *it_name->m_file_name))
         {
             row.fileLine = it_line->m_line;
             row.functionLine = -1;