diff --git a/toolkit/content/customizeToolbar.js b/toolkit/content/customizeToolbar.js index df89f84c1282..41d5c2aa42b3 100644 --- a/toolkit/content/customizeToolbar.js +++ b/toolkit/content/customizeToolbar.js @@ -529,7 +529,7 @@ function addNewToolbar() // if a conflict is found var nameToId = "__customToolbar_" + name.value.replace(" ", ""); var existingToolbar = gToolboxDocument.getElementById(nameToId); - if (existingToolbar) { + if (existingToolbar || !name.value) { message = stringBundle.getFormattedString("enterToolbarDup", [name.value]); } else { break;