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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user