debugger: callstack generation fixed with execstr 12/21712/1
Cedric Delamarre [Fri, 26 Mar 2021 10:09:07 +0000 (11:09 +0100)]
Change-Id: I8a658a696131b69410508a43d6faa92e877d76cb

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

index 66f727e..767632a 100644 (file)
@@ -363,7 +363,7 @@ void DebuggerManager::generateCallStack()
         row.functionLine = getExp()->getLocation().first_line - it_name->call->getFirstLine();
     }
 
-    if(callstackAddFile(&row, *it_name->m_file_name))
+    if(it_name->m_file_name && callstackAddFile(&row, *it_name->m_file_name))
     {
         row.fileLine = getExp()->getLocation().first_line;
     }