From f33b9f08d40c037b54416f45c4fefcad502d0491 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 9 Apr 2014 19:57:51 +0200 Subject: [PATCH] VCardProvider should treat tel code element optional SMACK-555 --- .../jivesoftware/smackx/vcardtemp/provider/VCardProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/src/main/java/org/jivesoftware/smackx/vcardtemp/provider/VCardProvider.java b/extensions/src/main/java/org/jivesoftware/smackx/vcardtemp/provider/VCardProvider.java index 04b3579e6..07351e7a4 100644 --- a/extensions/src/main/java/org/jivesoftware/smackx/vcardtemp/provider/VCardProvider.java +++ b/extensions/src/main/java/org/jivesoftware/smackx/vcardtemp/provider/VCardProvider.java @@ -199,7 +199,9 @@ public class VCardProvider implements IQProvider { code = nodeName; } } - if (code == null || value == null) continue; + if (value == null) continue; + if (code == null) + code = "VOICE"; if ("HOME".equals(type)) { vCard.setPhoneHome(code, value); }