summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-29 12:03:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-29 22:19:22 +0200
commit14b211478d2eded45f3e966e579a50c41325c216 (patch)
treec5a591ee6a87a21fd55c73c000171a8e2d57ec4a
parent0720c94db31d61dd9ee3c6bcd95f49003493a71b (diff)
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>
-rw-r--r--sc/source/core/data/global2.cxx2
1 files changed, 1 insertions, 1 deletions
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;