diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-02-05 14:26:15 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-02-05 14:26:15 +0100 |
commit | c1f9129f8b0277beab034ecc9224fc208425d5ed (patch) | |
tree | 3f42288c1f48d462896747d7223deab27690712e | |
parent | b17bb4193d2c56fbb2d710f43e283c87c99e1ceb (diff) | |
download | bugzilla-triage-c1f9129f8b0277beab034ecc9224fc208425d5ed.tar.gz |
Some security bugs don't have versions.
-rw-r--r-- | bugzillaBugTriage.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 27d07ba..e2b07aa 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -512,7 +512,14 @@ BzPage.prototype.setKeyword = function (str) { }; BzPage.prototype.getOptionValue = function (id) { - return this.dok.getElementById(id).value; + // Some special bugs don't have version for example + try { + return this.dok.getElementById(id).value; + } + catch (e) { + console.error("Failed to find element with id = " + id); + return "#NA"; + } }; /* Offline supporting functions */ |