sw/source/uibase/shells/drwtxtex.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f0aae45de103fb4f7b6a514a9ee2749ea4613215
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Feb 24 09:52:07 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Feb 24 12:45:35 2022 +0100

    cid#1455690 Explicit null dereferenced
    
    Change-Id: I1a5c666fa1f99cd0dc86975c60fc2bf54ceefd0e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130483
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/uibase/shells/drwtxtex.cxx 
b/sw/source/uibase/shells/drwtxtex.cxx
index e2d41cb03f95..e47f69fe4444 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -257,6 +257,7 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
             }
         break;
         case SID_ATTR_PARA_LINESPACE:
+            if (pNewAttrs)
             {
                 SvxLineSpacingItem aLineSpace = static_cast<const 
SvxLineSpacingItem&>(pNewAttrs->Get(
                                                             
GetPool().GetWhich(nSlot)));
@@ -266,6 +267,7 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
             }
             break;
         case SID_ATTR_PARA_ULSPACE:
+            if (pNewAttrs)
             {
                 SvxULSpaceItem aULSpace = static_cast<const 
SvxULSpaceItem&>(pNewAttrs->Get(
                     GetPool().GetWhich(nSlot)));

Reply via email to