summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/SessionKeeper.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceGridGUI/SessionKeeper.java')
-rw-r--r--java/src/IceGridGUI/SessionKeeper.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/IceGridGUI/SessionKeeper.java b/java/src/IceGridGUI/SessionKeeper.java
index 68e7fcdcdd6..51a024a6eea 100644
--- a/java/src/IceGridGUI/SessionKeeper.java
+++ b/java/src/IceGridGUI/SessionKeeper.java
@@ -764,7 +764,7 @@ public class SessionKeeper
public synchronized void setInstanceName(String instanceName)
{
- _instanceName = instanceName;
+ _instanceName = instanceName == null ? null : instanceName.trim();
}
public synchronized boolean getDefaultEndpoint()
@@ -797,7 +797,7 @@ public class SessionKeeper
public synchronized void setHost(String host)
{
- _host = host;
+ _host = host == null ? null : host.trim();
setDefaultEndpoint(true);
setCustomEndpoint(false);
}
@@ -868,7 +868,7 @@ public class SessionKeeper
public synchronized void setEndpoint(String endpoint)
{
- _endpoint = endpoint;
+ _endpoint = endpoint == null ? null : endpoint.trim();
setDefaultEndpoint(false);
setCustomEndpoint(true);
}
@@ -925,7 +925,7 @@ public class SessionKeeper
public synchronized void setUsername(String username)
{
- _username = username;
+ _username = username == null ? null : username.trim();
}
public synchronized char[] getPassword()