summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-09-09 09:25:47 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-09-09 09:25:47 +0000
commit40b460afe8717f4b3e49272f9065a9290e742e6a (patch)
treeff1e68243d43af5776e511175d4019a2efd3f0d8 /unotools
parent9e2bc0ee449807e87b0d7a813d3ec6f071a6b427 (diff)
#103071# avoid crash
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index c904fea29118..a927ebe40518 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tempfile.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: mba $ $Date: 2002-03-18 13:11:06 $
+ * last change: $Author: mav $ $Date: 2002-09-09 10:25:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -390,6 +390,9 @@ SvStream* TempFile::GetStream( StreamMode eMode )
String TempFile::SetTempNameBaseDirectory( const String &rBaseName )
{
+ if( !rBaseName.Len() )
+ return String();
+
rtl::OUString aUnqPath( rBaseName );
// remove trailing slash