Author:   Lars Michelsen <[email protected]>
Date:     Tue Apr 26 21:16:37 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 26 21:16:37 2011 +0200

Preventing js error message during update

---

 share/frontend/nagvis-js/js/frontend.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index c9cec03..f00e6d8 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -735,7 +735,7 @@ function updateObjects(aMapObjectInformations, sType) {
                }
                
                // Detect state changes and do some actions
-               if(oMapObjects[objectId].stateChanged()) {
+               if(oMapObjects && oMapObjects[objectId].stateChanged()) {
                        
                        /* Internal handling */
                        


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to