Bug 1040230 - Check array length to bail out earlier before creating the deleted info. r=vyang

This commit is contained in:
Bevis Tseng 2014-07-24 12:32:12 +08:00
parent 64b21ec330
commit e19f429a94

View File

@ -2547,7 +2547,8 @@ MobileMessageDB.prototype = {
},
notifyDeletedInfo: function(info) {
if (!info) {
if (!info ||
(info.messageIds.length === 0 && info.threadIds.length === 0)) {
return;
}