Fixed problems occuring when changing user in gerrit configuration

Bug: 399238
Change-Id: I255634bc9b3681f292190051daed22a4771d6e57
Signed-off-by: Tobias Pfeifer <to.pfeifer@sap.com>
This commit is contained in:
Tobias Pfeifer 2013-02-01 16:05:31 +01:00
parent dcddaa943e
commit 2c40482d0f
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ private String format(final boolean includePassword, boolean escapeNonAscii) {
}
if (getHost() != null) {
if (getUser() != null)
if (getUser() != null && getUser().length() > 0)
r.append('@');
r.append(escape(getHost(), false, escapeNonAscii));
if (getScheme() != null && getPort() > 0) {