diff options
author | Byron Jones <bjones@mozilla.com> | 2011-10-11 10:39:45 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2011-10-11 10:39:45 +0200 |
commit | 940466b73185d7ef483aa83d9cde50168d836bd4 (patch) | |
tree | f25450ed5339d53411023ada47a3b4263238df02 | |
parent | c8db0764abb2c5f8b361074e0779c1ab42e2786f (diff) | |
download | bugzilla-940466b73185d7ef483aa83d9cde50168d836bd4.tar.gz bugzilla-940466b73185d7ef483aa83d9cde50168d836bd4.tar.xz |
Bug 693543: javascript error when viewing bugs without bug-level flags
-rw-r--r-- | extensions/InlineHistory/web/inline-history.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js index 9fb860e3c..40f208d57 100644 --- a/extensions/InlineHistory/web/inline-history.js +++ b/extensions/InlineHistory/web/inline-history.js @@ -302,7 +302,9 @@ var inline_history = { }, linkBugFlags: function() { - var rows = Dom.get('flags').getElementsByTagName('tr'); + var flags = Dom.get('flags'); + if (!flags) return; + var rows = flags.getElementsByTagName('tr'); for (var i = 0, il = rows.length; i < il; i++) { var cells = rows[i].getElementsByTagName('td'); if (!cells[1]) continue; |