From b6fd4f5584aa8d0bb02d0011bb7da9f7c7c6938e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 29 Feb 2016 22:11:30 +0100 Subject: [PATCH] events.js: do not apply event handlers without... ...an Icinga object. Added a log line, eventually we'll catch this one far day :) --- public/js/icinga/events.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index fc2fb8e77..c1bc4c223 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -36,6 +36,12 @@ var self = event.data.self; var icinga = self.icinga; + if (! icinga) { + // Attempt to catch a rare error, race condition, whatever + console.log('Got no icinga in applyHandlers'); + return; + } + if (self.initializeModules) { var loaded = false; var moduleName = $target.data('icingaModule');