make sure we have a bookmarks toolbar before we try to rebuild it

bug 342245
patch by Simon Bünzli
r=myk
a=mconnor on behalf of drivers for 1.8 branch


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@200743 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
myk%mozilla.org
2006-06-23 22:05:39 +00:00
parent 95d59b9774
commit e446d42e4f

View File

@@ -688,7 +688,8 @@ MicrosummaryService.prototype = {
// rebuild the bookmarks toolbar
var bookmarksToolbar = win.document.getElementById("bookmarks-ptf");
bookmarksToolbar.builder.rebuild();
if (bookmarksToolbar)
bookmarksToolbar.builder.rebuild();
// rebuild the bookmarks sidebar
var sidebar = win.document.getElementById("sidebar");