Bug 336219: fix exception thrown in the notification widget, patch by Dietrich Ayala <dietrich@mozilla.com>, r=enn

This commit is contained in:
gavin%gavinsharp.com 2006-05-02 19:46:34 +00:00
parent 4a94571cee
commit d5a098b86f

View File

@ -206,7 +206,8 @@
newitem = aNotification;
}
else {
aNotification.parentNode.removeChild(aNotification);
if (aNotification.parentNode)
aNotification.parentNode.removeChild(aNotification);
var notifications = self.allNotifications;
var idx = notifications.length - 1;
if (idx >= 0)