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:26:59 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 0d696c9..f024a77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 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 b4c9aa3..d4ecafb 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -822,8 +822,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

Reply via email to