[Libreoffice-commits] core.git: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jul 15 20:11:06 UTC 2018


 sd/source/ui/view/outlnvsh.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 87884c53bfe7c4d10ee24359b3d03c9bc25c6b5e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jul 15 19:47:39 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 15 22:10:47 2018 +0200

    coverity#1437956 Dereference after null check
    
    Change-Id: Idcfb63beb094a000c70f594542757ad2e4a577fc
    Reviewed-on: https://gerrit.libreoffice.org/57459
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx
index e8de41e29cb1..a4ca4ecee0a8 100644
--- a/sd/source/ui/view/outlnvsh.cxx
+++ b/sd/source/ui/view/outlnvsh.cxx
@@ -1598,6 +1598,7 @@ void OutlineViewShell::UpdateTitleObject( SdPage* pPage, Paragraph const * pPara
         if (pOPO)
         {
             pOPO->SetOutlinerMode( OutlinerMode::TitleObject );
+            assert(pTO);
             pOPO->SetVertical( pTO->IsVerticalWriting() );
             if( pTO->GetOutlinerParaObject() && (pOPO->GetTextObject() == pTO->GetOutlinerParaObject()->GetTextObject()) )
             {


More information about the Libreoffice-commits mailing list