From 41a5399c39ee6b5199a3b7ebc77b9ed33cf033fc Mon Sep 17 00:00:00 2001 From: Derek DeMoro Date: Thu, 14 Sep 2006 20:46:32 +0000 Subject: [PATCH] Update VCardProvider. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@5371 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/provider/VCardProvider.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smackx/provider/VCardProvider.java b/source/org/jivesoftware/smackx/provider/VCardProvider.java index ce8a70302..4fd13f705 100644 --- a/source/org/jivesoftware/smackx/provider/VCardProvider.java +++ b/source/org/jivesoftware/smackx/provider/VCardProvider.java @@ -125,11 +125,12 @@ public class VCardProvider implements IQProvider { if (nodes == null) return; for (int i = 0; i < nodes.getLength(); i++) { Element element = (Element) nodes.item(i); - if ("HOME".equals(element.getParentNode().getFirstChild().getNodeName())) { - vCard.setEmailHome(getTextContent(element)); - } else { + if ("WORK".equals(element.getParentNode().getFirstChild().getNodeName())) { vCard.setEmailWork(getTextContent(element)); } + else { + vCard.setEmailHome(getTextContent(element)); + } } }