diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-08-23 10:51:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-08-23 12:58:50 +0300 |
commit | 45050470408b7c23182e89df7439a0820307f6ca (patch) | |
tree | 22b62634198343c084263db66cfae9c96bc6c339 | |
parent | 4feccde59797200f8a5f640b452a411f903e604a (diff) |
Don't crash if aProfileId is null
Change-Id: I1505469200c4bcc82f07eae325882fd6454ebcc5
-rw-r--r-- | comphelper/source/misc/profilezone.cxx | 2 |
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)) + " " + |