summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-11-02 23:51:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-11-04 13:48:22 +0000
commit03a5b16e056bf8ddab5a6b204db8706da7f7be26 (patch)
treeff1fd240dbf472df35be22799c671824480fbbf0
parentebb867f2b7d268eba5f39d387713fc2dac99a06d (diff)
Related: fdo#71147 lwp-files open not or without charts/tables
It seems pContent may be NULL (see https://bugs.freedesktop.org/attachment.cgi?id=88539) Change-Id: I80249dd1d0afc3feaef5f1b1d134210beee3d029 Reviewed-on: https://gerrit.libreoffice.org/6536 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit a210df8e50d94f557ceaa21e5f4943db97777812)
-rw-r--r--lotuswordpro/source/filter/xfilter/xfframe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfframe.cxx b/lotuswordpro/source/filter/xfilter/xfframe.cxx
index 1aab551d2f02..f86794cfa2c9 100644
--- a/lotuswordpro/source/filter/xfilter/xfframe.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfframe.cxx
@@ -92,6 +92,8 @@ XFFrame::~XFFrame()
void XFFrame::Add(IXFContent *pContent)
{
+ if (!pContent)
+ return;
XFContentContainer::Add(pContent);
if( pContent->GetContentType() == enumXFContentFrame )
{