Author: Lars Michelsen <[email protected]>
Date: Sun Nov 24 15:41:35 2013 +0100
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sun Nov 24 15:41:35 2013 +0100
status updates: silently throw away empty response objects
---
share/frontend/nagvis-js/js/frontend.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/share/frontend/nagvis-js/js/frontend.js
b/share/frontend/nagvis-js/js/frontend.js
index fe18979..43e37e2 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -2040,6 +2040,11 @@ function handleUpdate(o, aParams) {
return false;
}
+ if (!o) {
+ eventlog("ajax", "info", "handleUpdate: got empty object.
Terminating.");
+ return false;
+ }
+
// Procees the "config changed" responses
if(isset(o['status']) && o['status'] == 'CHANGED') {
var oChanged = o['data'];
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins