diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2011-01-08 20:12:07 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2011-01-08 20:12:07 +0000 |
commit | 77575882a03e0b5753f0b2de9557e8788767cd93 (patch) | |
tree | 847365db1239b709ca38f9ef31035ee995f4ee07 /src/net/java/sip | |
parent | 248b5b1595dd270bd1efd3c91bbffe2390e6b7a4 (diff) | |
download | jitsi-77575882a03e0b5753f0b2de9557e8788767cd93.zip jitsi-77575882a03e0b5753f0b2de9557e8788767cd93.tar.gz jitsi-77575882a03e0b5753f0b2de9557e8788767cd93.tar.bz2 |
Fixes the following issue reported by Emil Ivov on the dev mailing list in the thread _A few issues with Apple's Address Book support_: I don't get the images [...] in the contact list and only see them in the tool tip.
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/SourceUIContact.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/SourceUIContact.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/SourceUIContact.java index 0bf4970..c63b1c8 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/SourceUIContact.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/contactsource/SourceUIContact.java @@ -121,9 +121,9 @@ public class SourceUIContact { byte[] image = sourceContact.getImage(); - if (image != null) + if ((image != null) && (image.length > 0)) { - ImageIcon icon = new ImageIcon(); + ImageIcon icon = new ImageIcon(image); if (icon.getIconWidth() > width || icon.getIconHeight() > height) { |