From 153491f1ac0237a29f4ebb867fdd983cdf82e6b3 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Thu, 16 Jun 2011 19:54:46 +0000 Subject: [PATCH] Checks two strings if empty before showing them in the Jabber account form. --- .../communicator/plugin/jabberaccregwizz/AccountPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java index 79dcad6e4..d92cd970f 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/AccountPanel.java @@ -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)); }