Author: Lars Michelsen <[email protected]>
Date: Wed Jul 24 16:26:59 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Jul 24 16:27:11 2013 +0200
FIX: Fixed "TypeError: oLabel is null" on at least geomaps
---
ChangeLog | 1 +
.../frontend/nagvis-js/js/NagVisStatefulObject.js | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0e86bb3..a4a52cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@ Frontend:
Frontend:
* Weathermap lines now deal with bit/byte values provided by Check_MKs
interface checks
+ * FIX: Fixed "TypeError: oLabel is null" on at least geomaps
Automap:
* Labels have now a white background to improve the text readability
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index e91421d..a698955 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -825,8 +825,10 @@ var NagVisStatefulObject = NagVisObject.extend({
*/
updateLabel: function () {
var label = document.getElementById(this.conf.object_id + '-label');
- this.updateLabelPos(label);
- label = null;
+ if (label) {
+ this.updateLabelPos(label);
+ label = null;
+ }
},
/**
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins