mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1040230 - Check array length to bail out earlier before creating the deleted info. r=vyang
This commit is contained in:
parent
3193636cc1
commit
930175bbfe
@ -2547,7 +2547,8 @@ MobileMessageDB.prototype = {
|
||||
},
|
||||
|
||||
notifyDeletedInfo: function(info) {
|
||||
if (!info) {
|
||||
if (!info ||
|
||||
(info.messageIds.length === 0 && info.threadIds.length === 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user