summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/runtime/methods.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 17e2c5f0c712..3b84e4bc0a16 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -3590,8 +3590,12 @@ RTLFUNC(Shell)
// attach additional parameters - everything must be parsed anyway
if( nArgCount >= 4 )
{
- aCmdLine += " ";
- aCmdLine += rPar.Get(3)->GetOUString();
+ OUString tmp = rPar.Get(3)->GetOUString();
+ if (!tmp.isEmpty())
+ {
+ aCmdLine += " ";
+ aCmdLine += tmp;
+ }
}
else if( aCmdLine.isEmpty() )
{