diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 20:33:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 20:58:27 +0100 |
commit | 8aa12e6e62341698dadacbc7af75f14ed17d1b1d (patch) | |
tree | a8036ad345707008987bcccebae78c771a8c4365 /svx | |
parent | a3cdf77616684f65dac108beae9439fe6b1c9186 (diff) |
coverity#704827 Explicit null dereferenced
Change-Id: Ibffeb1653c7424cd8f9e4dbbb66b203a571cf2ef
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 20959e8702bd..2650811a01e7 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -301,7 +301,9 @@ INetURLObject GalleryTheme::ImplCreateUniqueURL( SgaObjKind eObjKind, sal_uIntPt OUString aFileName( "dd" ); aFileName += OUString::number( ++nNextNumber % 999999 ); - aFileName += OUString( pExt, strlen(pExt), RTL_TEXTENCODING_ASCII_US ); + + if (pExt) + aFileName += OUString( pExt, strlen(pExt), RTL_TEXTENCODING_ASCII_US ); aNewURL = aDir; aNewURL.Append( aFileName ); |