aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/queries.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-22 04:57:30 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-22 12:20:31 +0200
commit3fba7044de4b09e12077a6ef3dbb5d0fad9580e5 (patch)
treee22319929b64615842485100af2dc698e51d06bf /data/lib/queries.js
parent44f5320786bf11d36a93a8afce059dec93084361 (diff)
downloadbugzilla-triage-3fba7044de4b09e12077a6ef3dbb5d0fad9580e5.tar.gz
Fixed other functions broken
* not all functions are able to accept the null as return value (directly or indirectly) of filterByRegexp * finally make all logic not to affect components which shouldn't be bothered with the test.
Diffstat (limited to 'data/lib/queries.js')
-rw-r--r--data/lib/queries.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/lib/queries.js b/data/lib/queries.js
index 0c00792..7f935c8 100644
--- a/data/lib/queries.js
+++ b/data/lib/queries.js
@@ -78,6 +78,9 @@ function queryForSelection() {
*/
function queryUpstreamCallback(text, queryUpBug) {
var searchData = filterByRegexp(queryUpBug, getComponent());
+ if (!searchData) {
+ return ; // not sure why it should happen, but certainly better
+ }
var urlBase = searchData.url;
text = searchData.searchBy+":"+searchData.fillIn+" "+text.trim();
if (searchData.fillIn == "$$$") {