Skip to content

Commit

Permalink
handle blank GetName()
Browse files Browse the repository at this point in the history
Fixes:
[FatalError - StringHelper.cpp:60]: Error: invalid input arguments
  • Loading branch information
jdanz-psfc committed May 16, 2023
1 parent dbfc016 commit dc60200
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Scheduler/L3Services/SingleThreadService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ SingleThreadService::~SingleThreadService() {
}

ErrorManagement::ErrorType SingleThreadService::Start() {
embeddedThread.SetName(GetName());
CCString name = GetName();
CCString effectiveName = name ? name : "anonymous";
embeddedThread.SetName(effectiveName);
return embeddedThread.Start();
}

Expand Down

0 comments on commit dc60200

Please sign in to comment.