diff options
author | Alan Young <consult.awy@gmail.com> | 2015-06-29 09:08:57 (GMT) |
---|---|---|
committer | Alan Young <consult.awy@gmail.com> | 2015-07-03 06:20:09 (GMT) |
commit | b13e0bd8d634df53f6a2d8bd3c1ceb3c84b84430 (patch) | |
tree | 5fcdb597e0ebf879f1a79292d4562f9fc0c95a14 /src/com | |
parent | 25fade1995f559c8937b57585f462aaa2ae01c6a (diff) | |
download | stroke-b13e0bd8d634df53f6a2d8bd3c1ceb3c84b84430.zip stroke-b13e0bd8d634df53f6a2d8bd3c1ceb3c84b84430.tar.bz2 |
VCard: Ensure jids_ is allocated in addJID()
Change-Id: Ibfea910e72ed4cdd21b19bf60d0ab5af1fdb0a92
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/isode/stroke/elements/VCard.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/isode/stroke/elements/VCard.java b/src/com/isode/stroke/elements/VCard.java index ff4a02c..2eb26d0 100644 --- a/src/com/isode/stroke/elements/VCard.java +++ b/src/com/isode/stroke/elements/VCard.java @@ -307,8 +307,8 @@ public class VCard extends Payload implements Serializable { } public void addJID(JID jid) { - jids_.add(jid); - + if (jids_ == null) jids_ = new ArrayList<JID>(); + jids_.add(jid); } public List<Telephone> getTelephones() { |