fix NullPointerException if no proxy is specified in the icq registration wizard

cusax-fix
Yana Stamcheva 19 years ago
parent 068bea3459
commit 7784ee9114

@ -88,17 +88,27 @@ public Iterator getSummary() {
summaryTable.put("UIN", registration.getUin());
summaryTable.put("Remember password",
new Boolean(registration.isRememberPassword()));
summaryTable.put(Resources.getString("proxy"),
registration.getProxy());
summaryTable.put(Resources.getString("proxyPort"),
registration.getProxyPort());
summaryTable.put(Resources.getString("proxyType"),
registration.getProxyType());
summaryTable.put(Resources.getString("proxyUsername"),
registration.getProxyPort());
summaryTable.put(Resources.getString("proxyPassword"),
registration.getProxyType());
if(registration.getProxy() != null)
summaryTable.put(Resources.getString("proxy"),
registration.getProxy());
if(registration.getProxyPort() != null)
summaryTable.put(Resources.getString("proxyPort"),
registration.getProxyPort());
if(registration.getProxyType() != null)
summaryTable.put(Resources.getString("proxyType"),
registration.getProxyType());
if(registration.getProxyPort() != null)
summaryTable.put(Resources.getString("proxyUsername"),
registration.getProxyPort());
if(registration.getProxyType() != null)
summaryTable.put(Resources.getString("proxyPassword"),
registration.getProxyType());
return summaryTable.entrySet().iterator();
}

Loading…
Cancel
Save