diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:31:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:24 +0000 |
commit | 047d71d0dd25ec3bb86cef96af77a609686302bd (patch) | |
tree | 1f492e0f90fe48ab25ec969914166cdb80ebcf4b /sd | |
parent | f02cda1680da4816cae46805a1f0dd86c32ddbb8 (diff) |
coverity#735836 Dereference after null check
Change-Id: Ia91df4aeec1b632030f0e4d1d0067cdc32e64057
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuhhconv.cxx | 2 |
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(); |