Checks two strings if empty before showing them in the Jabber account form.

cusax-fix
Yana Stamcheva 15 years ago
parent f474f42f2a
commit 153491f1ac

@ -113,7 +113,7 @@ public AccountPanel(final JabberAccountRegistrationForm parentForm)
String createAccountString = parentForm.getCreateAccountButtonLabel();
if (createAccountString != null)
if (createAccountString != null && createAccountString.length() > 0)
{
JPanel buttonPanel
= new TransparentPanel(new FlowLayout(FlowLayout.CENTER));
@ -124,7 +124,8 @@ public AccountPanel(final JabberAccountRegistrationForm parentForm)
}
String createAccountInfoString = parentForm.getCreateAccountLabel();
if (createAccountInfoString != null)
if (createAccountInfoString != null
&& createAccountInfoString.length() > 0)
{
registerPanel.add(createRegisterArea(createAccountInfoString));
}

Loading…
Cancel
Save