summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/profilezone.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/comphelper/source/misc/profilezone.cxx b/comphelper/source/misc/profilezone.cxx
index e9e9caafca24..dacd098442a9 100644
--- a/comphelper/source/misc/profilezone.cxx
+++ b/comphelper/source/misc/profilezone.cxx
@@ -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)) + " " +