coverity#1433646 Dereference after null check

Change-Id: Ie3a352551a82656939c7d25b7f922a03b80d232b
Reviewed-on: https://gerrit.libreoffice.org/52061
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2018-03-29 13:29:39 +02:00
parent 201dc4c43a
commit b83a373586
@@ -383,7 +383,7 @@ void Clipboard::CreateSlideTransferable (
(model::PageEnumerationProvider::CreateSelectedPagesEnumeration(
mrSlideSorter.GetModel()));
SdDrawDocument* const pDocument = mrSlideSorter.GetModel().GetDocument();
DrawDocShell* const pDataDocSh = pDocument ? pDocument->GetDocSh() : nullptr;
DrawDocShell* const pDataDocSh = pDocument->GetDocSh();
sal_Int32 nUniqueID = 0;
while (aSelectedPages.HasMoreElements())