1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +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);
}