[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Sat Jul 29 20:20:11 UTC 2017


 sc/source/core/data/global2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 14b211478d2eded45f3e966e579a50c41325c216
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jul 29 12:03:48 2017 +0100

    ofz: no shell during testing
    
    Change-Id: I8be6ed363c9028b9fb85ff1829b5bffe1210bbf1
    Reviewed-on: https://gerrit.libreoffice.org/40548
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/core/data/global2.cxx b/sc/source/core/data/global2.cxx
index ab50f5aae7a4..a0262f30f13e 100644
--- a/sc/source/core/data/global2.cxx
+++ b/sc/source/core/data/global2.cxx
@@ -309,7 +309,7 @@ OUString ScGlobal::GetAbsDocName( const OUString& rFileName,
                                 SfxObjectShell* pShell )
 {
     OUString aAbsName;
-    if ( !pShell->HasName() )
+    if (!pShell || !pShell->HasName())
     {   // maybe relative to document path working directory
         INetURLObject aObj;
         SvtPathOptions aPathOpt;


More information about the Libreoffice-commits mailing list