diff options
author | Jose <jose@zeroc.com> | 2012-12-04 13:20:02 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-12-04 13:20:02 +0100 |
commit | e66b09fc496eac7ddc613c7c727c38ee2f854638 (patch) | |
tree | f668538c2c8ca7dd493ac614642f0cd0efe90259 /java/src/IceGridGUI/SessionKeeper.java | |
parent | Simplified IceGrid Admin instructions (diff) | |
download | ice-e66b09fc496eac7ddc613c7c727c38ee2f854638.tar.bz2 ice-e66b09fc496eac7ddc613c7c727c38ee2f854638.tar.xz ice-e66b09fc496eac7ddc613c7c727c38ee2f854638.zip |
Fixed (ICE-5087) - IceGridGUI: the instance name white space is not eaten
Diffstat (limited to 'java/src/IceGridGUI/SessionKeeper.java')
-rw-r--r-- | java/src/IceGridGUI/SessionKeeper.java | 8 |
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() |