diff --git a/midp/localmsg.js b/midp/localmsg.js index daab02de..cd50e69f 100644 --- a/midp/localmsg.js +++ b/midp/localmsg.js @@ -349,7 +349,7 @@ NokiaContactsLocalMsgConnection.prototype.sendMessageToServer = function(message } var gotContact = (function(contact) { - if (!contact.tel) { + if (contact && !contact.tel) { contacts.getNext(gotContact); return; }