summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;