Small window fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7767 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-03-29 00:18:30 +00:00
committed by derek
parent 283d96d4b5
commit 8c1f21867d

View File

@ -245,13 +245,16 @@ public class ContactInfoWindow extends JPanel {
}
// Get VCard from memory (if available)
String title = "";
VCard vcard = SparkManager.getVCardManager().getVCardFromMemory(StringUtils.parseBareAddress(contactItem.getJID()));
if (vcard != null) {
String title = vcard.getField("TITLE");
if (ModelUtil.hasLength(title)) {
titleLabel.setText(title);
title = vcard.getField("TITLE");
if (!ModelUtil.hasLength(title)) {
title = "";
}
}
titleLabel.setText(title);
}
public ContactItem getContactItem() {