summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 11:31:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 12:19:24 +0000
commit047d71d0dd25ec3bb86cef96af77a609686302bd (patch)
tree1f492e0f90fe48ab25ec969914166cdb80ebcf4b /sd
parentf02cda1680da4816cae46805a1f0dd86c32ddbb8 (diff)
coverity#735836 Dereference after null check
Change-Id: Ia91df4aeec1b632030f0e4d1d0067cdc32e64057
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuhhconv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuhhconv.cxx b/sd/source/ui/func/fuhhconv.cxx
index bed210cec283..374ec24b0959 100644
--- a/sd/source/ui/func/fuhhconv.cxx
+++ b/sd/source/ui/func/fuhhconv.cxx
@@ -136,7 +136,7 @@ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_In
// Due to changing between edit mode, notes mode, and handout mode the
// view has most likely changed. Get the new one.
- mpViewShell = pBase->GetMainViewShell().get();
+ mpViewShell = pBase ? pBase->GetMainViewShell().get() : NULL;
if (mpViewShell != NULL)
{
mpView = mpViewShell->GetView();