diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-08-16 16:46:57 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-08-16 22:08:35 +0200 |
commit | 3cd264bb09c6c14bf9eb769d508d7015c4bdc83b (patch) | |
tree | 2190a3c93ca9c00950f97923f24ff95d706177f4 | |
parent | 085933f202cf973782a20a46a60087ff943ad6b9 (diff) |
tdf#117797 guard access to mpSwapFile as it may not be set
Change-Id: If45257293e997bc4540b97fbbe5f1f4b77a48b69
Reviewed-on: https://gerrit.libreoffice.org/59202
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index c0767474a01a..005427b66dce 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -1585,7 +1585,8 @@ bool ImpGraphic::ImplSwapIn() bRet = ImplSwapIn( xIStm.get() ); xIStm.reset(); - setOriginURL(mpSwapFile->maOriginURL); + if (mpSwapFile) + setOriginURL(mpSwapFile->maOriginURL); mpSwapFile.reset(); } } |