ofz: no shell during testing

Change-Id: I8be6ed363c9028b9fb85ff1829b5bffe1210bbf1
Reviewed-on: https://gerrit.libreoffice.org/40548
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sc/source/core/data/global2.cxx b/sc/source/core/data/global2.cxx
index ab50f5a..a0262f3 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;