Skip to content

Commit 0667c06

Browse files
Testing env: check if OutputDebugMessage params are null
1 parent d00a590 commit 0667c06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/TestFramework/src/TestingEnvironment.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ void TestingEnvironment::MessageCallback(DEBUG_MESSAGE_SEVERITY Severity,
5858
const char* File,
5959
int Line)
6060
{
61+
if (!Message)
62+
Message = "";
63+
if (!Function)
64+
Function = "";
65+
if (!File)
66+
File = "";
67+
6168
TextColor MsgColor = TextColor::Auto;
6269
if (Severity == DEBUG_MESSAGE_SEVERITY_ERROR || Severity == DEBUG_MESSAGE_SEVERITY_FATAL_ERROR)
6370
{

0 commit comments

Comments
 (0)