Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Protect against condition where job does not exist (bug 674580)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jul 27, 2011
1 parent 49bdc81 commit 1571fef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion media/js/zamboni/admin_validation.js
Expand Up @@ -138,7 +138,12 @@ function initAdminValidation(doc) {
cache: false,
success: function(data) {
$.each(data, function(jobId, stats) {
incompleteJobs[jobId].trigger('receivestats', [stats]);
if (incompleteJobs[jobId]) {
incompleteJobs[jobId].trigger('receivestats', [stats]);
} else {
if (typeof console !== 'undefined')
console.log('checkstats: Job ID does not exist: ' + jobId);
}
});
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
Expand Down

0 comments on commit 1571fef

Please sign in to comment.