[*] Crash fix: Null SysPushErrors should be assigned empty strings

This commit is contained in:
Reece Wilson 2021-06-30 17:33:18 +01:00
parent c8c3908085
commit 784d58b184

View File

@ -204,7 +204,7 @@ namespace Aurora::Debug
AUKN_SYM void _PushError(AuUInt address, FailureCategory category, const char *msg)
{
LastError error{ address, category, msg };
LastError error{ address, category, msg ? msg : "" };
AuUInt32 rng = GetFenceId();
Telemetry::InsertManualFence(rng);
@ -214,7 +214,8 @@ namespace Aurora::Debug
Telemetry::InsertManualFence(rng);
#if defined(DEBUG) || defined(INTERNAL)
LogWarn("ERROR: {}", msg);
PrintError();
LogWarn("ERROR: {}", error.dbg);
#endif
}