[Libreoffice-commits] .: sd/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Apr 17 15:04:42 PDT 2011


 sd/source/ui/dlg/navigatr.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5cc73f49400f9719ffd5382e64931de6eb8f130c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Apr 17 22:57:40 2011 +0100

    Resolves: rhbz#695509 crash in RefreshDocumentLB

diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 09426b8..edee709 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -713,7 +713,8 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
                 NavDocInfo* pInfo = new NavDocInfo();
                 pInfo->mpDocShell = pDocShell;
 
-                aStr = pDocShell->GetMedium()->GetName();
+                SfxMedium *pMedium = pDocShell->GetMedium();
+                aStr = pMedium ? pMedium->GetName() : String();
                 if( aStr.Len() )
                     pInfo->SetName();
                 else


More information about the Libreoffice-commits mailing list