summaryrefslogtreecommitdiff
path: root/unotest/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-16 14:59:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-16 15:00:13 +0100
commit0bb3af8934ed1cdce22941a279c32ec2704397b0 (patch)
tree2653960fea6eb4ddf217b940321fff7c29d3a919 /unotest/source
parent54a918bbfba47734d414832755e35434da103ed5 (diff)
Handle unset workdir argument.
Diffstat (limited to 'unotest/source')
-rw-r--r--unotest/source/java/org/openoffice/test/OfficeConnection.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/unotest/source/java/org/openoffice/test/OfficeConnection.java b/unotest/source/java/org/openoffice/test/OfficeConnection.java
index ae2cae058667..da99d0d1922e 100644
--- a/unotest/source/java/org/openoffice/test/OfficeConnection.java
+++ b/unotest/source/java/org/openoffice/test/OfficeConnection.java
@@ -67,7 +67,10 @@ public final class OfficeConnection {
"--accept=" + description + ";urp",
"-env:UserInstallation=" + Argument.get("user"),
"-env:UNO_JAVA_JFW_ENV_JREHOME=true");
- pb.directory(new File(Argument.get("workdir")));
+ String workdirArg = Argument.get("workdir");
+ if (workdirArg != null) {
+ pb.directory(new File(workdirArg));
+ }
String envArg = Argument.get("env");
if (envArg != null) {
Map<String, String> env = pb.environment();