diff --git a/mozilla/browser/base/content/customizeToolbar.js b/mozilla/browser/base/content/customizeToolbar.js index 71e43d8b300..56f3f8b5c2e 100644 --- a/mozilla/browser/base/content/customizeToolbar.js +++ b/mozilla/browser/base/content/customizeToolbar.js @@ -251,7 +251,9 @@ var paletteDNDObserver = { } toolbarItem = toolbarItem.nextSibling; } - + if (!item) + return; + // We're going back in the palette now, so we have to readd the flex // and width which we removed when moving the item to the toolbar. // (These attributes help space the items properly in the palette.)