summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/xml/xmltexte.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmltexte.cxx b/sw/source/filter/xml/xmltexte.cxx
index e3612656635f..f3a41311a1f5 100644
--- a/sw/source/filter/xml/xmltexte.cxx
+++ b/sw/source/filter/xml/xmltexte.cxx
@@ -201,7 +201,7 @@ void SwXMLTextParagraphExport::setTextEmbeddedGraphicURL(
return;
SwGrfNode *pGrfNd = GetNoTxtNode( rPropSet )->GetGrfNode();
- if( !pGrfNd->IsGrfLink() )
+ if (pGrfNd && !pGrfNd->IsGrfLink())
{
// #i15411# save-as will swap all graphics in; we need to swap
// them out again, to prevent excessive memory use