Kaydet (Commit) 45050470 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't crash if aProfileId is null

Change-Id: I1505469200c4bcc82f07eae325882fd6454ebcc5
üst 4feccde5
......@@ -46,6 +46,8 @@ long long addRecording(const char * aProfileId, long long aCreateTime)
TimeValue systemTime;
osl_getSystemTime( &systemTime );
long long aTime = (long long) systemTime.Seconds * 1000000 + systemTime.Nanosec/1000;
if (!aProfileId)
aProfileId = "(null)";
OUString aString(aProfileId, strlen(aProfileId), RTL_TEXTENCODING_UTF8);
g_aRecording.push_back(
OUString::number(osl_getThreadIdentifier(nullptr)) + " " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment