felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1327875 - /felix/trunk/webconsole/src/main/resources/res/lib/support.js
Date Thu, 19 Apr 2012 09:00:15 GMT
Author: fmeschbe
Date: Thu Apr 19 09:00:15 2012
New Revision: 1327875

URL: http://svn.apache.org/viewvc?rev=1327875&view=rev
Log:
FELIX-3469 Guard against undefined array element

Modified:
    felix/trunk/webconsole/src/main/resources/res/lib/support.js

Modified: felix/trunk/webconsole/src/main/resources/res/lib/support.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/lib/support.js?rev=1327875&r1=1327874&r2=1327875&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/lib/support.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/lib/support.js Thu Apr 19 09:00:15 2012
@@ -264,7 +264,9 @@ function Xdialog(text) {
 
 	if (children && children.length) {
 		for (var i=0; i < children.length; i++) {
-			element.appendChild( children[i] );
+		    if (children[i]) {
+		        element.appendChild( children[i] );
+		    }
 		}
 	}
 



Mime
View raw message