From b13e0bd8d634df53f6a2d8bd3c1ceb3c84b84430 Mon Sep 17 00:00:00 2001 From: Alan Young Date: Mon, 29 Jun 2015 11:08:57 +0200 Subject: VCard: Ensure jids_ is allocated in addJID() Change-Id: Ibfea910e72ed4cdd21b19bf60d0ab5af1fdb0a92 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(); + jids_.add(jid); } public List getTelephones() { -- cgit v0.10.2-6-g49f6