diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-11 17:34:43 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-11 17:34:52 +0100 |
commit | bacb3f4f77949cd047eb3a6506074e3574182b34 (patch) | |
tree | e63de5679782955fcd7d4b9a29742b7aa5303278 | |
parent | 978cb6303a5c5c808952ec8cab6dbef4b0bab16d (diff) |
sw: fixed a crasher, fdo#32575
-rw-r--r-- | sw/source/ui/app/docsh2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index 553b95d215..a0ff876246 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -1476,8 +1476,10 @@ long SwDocShell::DdeSetData( const String& rItem, const String& rMimeType, void SwDocShell::ReconnectDdeLink(SfxObjectShell& rServer) { - ::sfx2::LinkManager& rLinkManager = pDoc->GetLinkManager(); - rLinkManager.ReconnectDdeLink(rServer); + if ( pDoc ) { + ::sfx2::LinkManager& rLinkManager = pDoc->GetLinkManager(); + rLinkManager.ReconnectDdeLink(rServer); + } } void SwDocShell::FillClass( SvGlobalName * pClassName, |