903c5da
From 5cc73f49400f9719ffd5382e64931de6eb8f130c Mon Sep 17 00:00:00 2001
903c5da
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
903c5da
Date: Sun, 17 Apr 2011 22:57:40 +0100
903c5da
Subject: [PATCH] Resolves: rhbz#695509 crash in RefreshDocumentLB
903c5da
903c5da
---
903c5da
 sd/source/ui/dlg/navigatr.cxx |    3 ++-
903c5da
 1 files changed, 2 insertions(+), 1 deletions(-)
903c5da
903c5da
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
903c5da
index 09426b8..edee709 100644
903c5da
--- a/sd/source/ui/dlg/navigatr.cxx
903c5da
+++ b/sd/source/ui/dlg/navigatr.cxx
903c5da
@@ -713,7 +713,8 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
903c5da
                 NavDocInfo* pInfo = new NavDocInfo();
903c5da
                 pInfo->mpDocShell = pDocShell;
903c5da
 
903c5da
-                aStr = pDocShell->GetMedium()->GetName();
903c5da
+                SfxMedium *pMedium = pDocShell->GetMedium();
903c5da
+                aStr = pMedium ? pMedium->GetName() : String();
903c5da
                 if( aStr.Len() )
903c5da
                     pInfo->SetName();
903c5da
                 else
903c5da
-- 
903c5da
1.7.4.2
903c5da