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 3193636cc1
commit 930175bbfe

View File

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