File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5484,7 +5484,7 @@ Longptr_t TCling::ExecuteMacro(const char* filename, EErrorCode* error)
54845484const char * TCling::GetTopLevelMacroName () const
54855485{
54865486 Warning (" GetTopLevelMacroName" , " Must change return type!" );
5487- return fCurExecutingMacros .back ();
5487+ return fCurExecutingMacros .empty () ? nullptr : fCurExecutingMacros . back ();
54885488}
54895489
54905490// //////////////////////////////////////////////////////////////////////////////
@@ -5535,7 +5535,7 @@ const char* TCling::GetCurrentMacroName() const
55355535 Warning (" GetCurrentMacroName" , " Must change return type!" );
55365536#endif
55375537#endif
5538- return fCurExecutingMacros .back ();
5538+ return fCurExecutingMacros .empty () ? nullptr : fCurExecutingMacros . back ();
55395539}
55405540
55415541// //////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments