diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2013-07-06 13:46:40 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2013-07-06 13:46:40 +0200 |
commit | 49460575900c8f46144c7121f7361c45177f99ae (patch) | |
tree | 8b05efe912ed9f9b5b13bb91a4f3772253bf1a57 /src/net/java/sip/communicator/plugin/jabberaccregwizz | |
parent | c76993799ebd7db94eb03112817ed531de8bc08c (diff) | |
download | jitsi-49460575900c8f46144c7121f7361c45177f99ae.zip jitsi-49460575900c8f46144c7121f7361c45177f99ae.tar.gz jitsi-49460575900c8f46144c7121f7361c45177f99ae.tar.bz2 |
Ignore resource priority if it's null as well as empty
Diffstat (limited to 'src/net/java/sip/communicator/plugin/jabberaccregwizz')
-rw-r--r-- | src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java index c59b431..1e6b0fa 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountRegistrationForm.java @@ -11,6 +11,8 @@ import java.util.List; import javax.swing.*; +import org.jitsi.util.StringUtils; + import net.java.sip.communicator.plugin.desktoputil.*; import net.java.sip.communicator.plugin.desktoputil.wizard.*; import net.java.sip.communicator.service.credentialsstorage.*; @@ -314,7 +316,7 @@ public class JabberAccountRegistrationForm registration.setServerPort(serverPort); String priority = connectionPanel.getPriority(); - if (priority != null) + if (!StringUtils.isNullOrEmpty(priority)) registration.setPriority(Integer.parseInt(priority)); registration.setDTMFMethod(connectionPanel.getDTMFMethod()); |