summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2015-02-19 10:45:26 +0100
committerEike Rathke <erack@redhat.com>2015-02-19 19:04:25 +0000
commit36578765e206ec963988d75e8a53adca0c981bc8 (patch)
treedf312a7e0cb66399777c0c696e7608ba2e089181 /sc
parent2ef31a41dd6b03a24c296dee0fa1b6a67173cc14 (diff)
tdf#89460 test pChangeTrack before using it
Change-Id: Ic02351c448929daa7d4c5a9a00df9842c2c5aa91 Reviewed-on: https://gerrit.libreoffice.org/14553 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit bf5c5f359cf4eb36a0a9a1110ec2aa3393bb87df) Reviewed-on: https://gerrit.libreoffice.org/14557
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 948e170dffd0..1a1c6f8ee402 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -586,8 +586,11 @@ void ScDocShell::Execute( SfxRequest& rReq )
if ( bDo )
{
- if ( pChangeTrack->IsProtected() )
- bDo = ExecuteChangeProtectionDialog( NULL );
+ if (pChangeTrack)
+ {
+ if ( pChangeTrack->IsProtected() )
+ bDo = ExecuteChangeProtectionDialog( NULL );
+ }
if ( bDo )
{
rDoc.EndChangeTracking();