sc/source/core/data/global2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 14b211478d2eded45f3e966e579a50c41325c216 Author: Caolán McNamara <caol...@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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits