diff --git a/mozilla/toolkit/crashreporter/content/crashes.xhtml b/mozilla/toolkit/crashreporter/content/crashes.xhtml index 2cd3adf7684..aea31b1678b 100644 --- a/mozilla/toolkit/crashreporter/content/crashes.xhtml +++ b/mozilla/toolkit/crashreporter/content/crashes.xhtml @@ -84,7 +84,15 @@ function findInsertionPoint(reports, date) { function populateReportList() { var prefService = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefBranch); - var reportURL = prefService.getCharPref("breakpad.reportURL"); + + try { + var reportURL = prefService.getCharPref("breakpad.reportURL"); + } + catch (e) { + document.getElementById("reportList").style.display = "none"; + document.getElementById("noConfig").style.display = "block"; + return; + } var directoryService = Cc["@mozilla.org/file/directory_service;1"]. getService(Ci.nsIProperties); @@ -202,5 +210,6 @@ function clearReports() { + diff --git a/mozilla/toolkit/locales/en-US/crashreporter/crashes.dtd b/mozilla/toolkit/locales/en-US/crashreporter/crashes.dtd index ddc6bf664ef..23b0def9d41 100644 --- a/mozilla/toolkit/locales/en-US/crashreporter/crashes.dtd +++ b/mozilla/toolkit/locales/en-US/crashreporter/crashes.dtd @@ -2,4 +2,6 @@ +breakpad.reportURL must be set."> +