diff --git a/js/models/messages.js b/js/models/messages.js index 8b6a9626..4e320fe9 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -44,7 +44,9 @@ return this.get('type') === 'incoming'; }, getContact: function() { - return this.collection.conversation.contactCollection.get(this.get('source')); + if (this.collection) { + return this.collection.conversation.contactCollection.get(this.get('source')); + } } });