diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-29 20:55:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-29 21:17:18 +0100 |
commit | c103554eb67fd75b45b90699c7c6ed9e0cafb755 (patch) | |
tree | c8a1f94ca7576ca12191bb5ec809ed46b86f26c2 /sd | |
parent | 2916691477be5e027726a6441dec3d44bd95d055 (diff) |
coverity#1296210 Explicit null dereferenced
Change-Id: Ia5aaa3deba695f9b9aec68477f8b34f1602a8045
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 69219b06c354..d6f35d109473 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -896,7 +896,7 @@ OUString AssistentDlgImpl::GetDocFileName() { const sal_uInt16 nEntry = mpPage1TemplateLB->GetSelectEntryPos(); TemplateEntry* pEntry = NULL; - if(nEntry != (sal_uInt16)-1) + if (mpTemplateRegion && nEntry != (sal_uInt16)-1) pEntry = mpTemplateRegion->maEntries[nEntry]; if(pEntry) |