diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 15:01:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-16 22:18:30 +0200 |
commit | 9fe16109167b57ab7e7356f96fcee9ecfeeb1b63 (patch) | |
tree | fb4ef35d1af19a7761c9b4047d9dbdae42d3dcbb /oox/source/ppt | |
parent | 8efdce75d96819d42bae2104169b74d67677c32e (diff) |
ofz#9932 Null-deref
Change-Id: I6a917e118fa9263069c13122765fc6c1ace2bddb
Reviewed-on: https://gerrit.libreoffice.org/59183
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox/source/ppt')
-rw-r--r-- | oox/source/ppt/timenode.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/ppt/timenode.cxx b/oox/source/ppt/timenode.cxx index 854797a9649c..9b77001aaff1 100644 --- a/oox/source/ppt/timenode.cxx +++ b/oox/source/ppt/timenode.cxx @@ -205,6 +205,8 @@ namespace oox { namespace ppt { OUString sServiceName = getServiceName(nNodeType); Reference< XAnimationNode > xNode = createAndInsert( rFilter, sServiceName, rxNode ); + if (!xNode) + return; setNode(rFilter, xNode, pSlide, rxNode); } catch( const Exception& e ) @@ -236,7 +238,7 @@ namespace oox { namespace ppt { if( !maStCondList.empty() ) { Any aAny = AnimationCondition::convertList( pSlide, maStCondList ); - if( aAny.hasValue() ) + if( aAny.hasValue() ) { xNode->setBegin( aAny ); } |