aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2008-10-09 15:54:29 +0000
committerYana Stamcheva <yana@jitsi.org>2008-10-09 15:54:29 +0000
commitca377085ade90fa237b169117abad105916c2440 (patch)
treeef2d95bf33dec617a6ea2cf4311b741f4cf441f4 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java
parent429a89f34ac1da15ccae719a848a1baa12b9ae33 (diff)
downloadjitsi-ca377085ade90fa237b169117abad105916c2440.zip
jitsi-ca377085ade90fa237b169117abad105916c2440.tar.gz
jitsi-ca377085ade90fa237b169117abad105916c2440.tar.bz2
Check if the rounded avatar is null before setting it to the contact label.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java
index 2eff328..9553640 100644
--- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java
+++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java
@@ -129,7 +129,9 @@ public class ContactListCellRenderer
if (avatar != null && avatar.length > 0)
{
Image roundedAvatar = createRoundImage(avatar);
- this.photoLabel.setIcon(new ImageIcon(roundedAvatar));
+
+ if (roundedAvatar != null)
+ this.photoLabel.setIcon(new ImageIcon(roundedAvatar));
}
// We should set the bounds of the cell explicitely in order to