Bug 914444. Deal with groupItem() being called after our GroupItem has been uninitialized. r=ttaubert

This commit is contained in:
Boris Zbarsky 2013-09-11 01:16:38 -04:00
parent 505b47db7a
commit 7c4cd424a0

View File

@ -2293,6 +2293,10 @@ let GroupItems = {
// Given some sort of identifier, returns the appropriate groupItem.
// Currently only supports groupItem ids.
groupItem: function GroupItems_groupItem(a) {
if (!this.groupItems) {
// uninit has been called
return null;
}
var result = null;
this.groupItems.forEach(function(candidate) {
if (candidate.id == a)