diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-08-29 12:29:45 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-08-29 12:29:45 +0000 |
commit | 305bf0ae6a571ddc4df8768b1a07cc28bec86c1d (patch) | |
tree | 2d7e4da4b8cdefbdc30aa5727fcafa1cfba66322 /src/net/java/sip | |
parent | 7f5f544336d02b3f7513a6bac92dfacea30cbfca (diff) | |
download | jitsi-305bf0ae6a571ddc4df8768b1a07cc28bec86c1d.zip jitsi-305bf0ae6a571ddc4df8768b1a07cc28bec86c1d.tar.gz jitsi-305bf0ae6a571ddc4df8768b1a07cc28bec86c1d.tar.bz2 |
Retrieves account display name from account id if not returned from the account info operationset.
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/MainFrame.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/MainFrame.java b/src/net/java/sip/communicator/impl/gui/main/MainFrame.java index e2a6ae1..58b2e3d 100644 --- a/src/net/java/sip/communicator/impl/gui/main/MainFrame.java +++ b/src/net/java/sip/communicator/impl/gui/main/MainFrame.java @@ -905,7 +905,12 @@ public class MainFrame try { if (accountInfoOpSet != null) - return AccountInfoUtils.getDisplayName(accountInfoOpSet); + { + String displayName + = AccountInfoUtils.getDisplayName(accountInfoOpSet); + if(displayName != null && displayName.length() > 0) + return displayName; + } } catch(Throwable e) { |