1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

VCardProvider should treat tel code element optional

SMACK-555
This commit is contained in:
Florian Schmaus 2014-04-09 19:57:51 +02:00
parent ab70cfec24
commit f33b9f08d4

View file

@ -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);
}