diff options
Diffstat (limited to 'src/com/isode')
-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() { |