aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzillaBugTriage.js9
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 */