You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pe...@apache.org on 2012/07/18 11:13:23 UTC

git commit: fix possible javascript null pointer access

Updated Branches:
  refs/heads/wicket-1.5.x 35a6d7ea2 -> e1d1b3f28


fix possible javascript null pointer access


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e1d1b3f2
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e1d1b3f2
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e1d1b3f2

Branch: refs/heads/wicket-1.5.x
Commit: e1d1b3f285bda522c5299889ff06429a4c2de4e7
Parents: 35a6d7e
Author: Peter Ertl <pe...@apache.org>
Authored: Wed Jul 18 10:45:40 2012 +0200
Committer: Peter Ertl <pe...@apache.org>
Committed: Wed Jul 18 10:45:40 2012 +0200

----------------------------------------------------------------------
 .../wicket/markup/html/form/CheckGroupSelector.js  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e1d1b3f2/wicket-core/src/main/java/org/apache/wicket/markup/html/form/CheckGroupSelector.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/CheckGroupSelector.js b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/CheckGroupSelector.js
index dbea6a7..64d01f4 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/form/CheckGroupSelector.js
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/form/CheckGroupSelector.js
@@ -32,7 +32,7 @@ if (typeof (Wicket.CheckboxSelector.Group) == "undefined") {
 			var result = new Array();
 			var parentForm = wicketGet(formId);
 			var parentGroup = parentForm[groupName];
-			if (parentGroup.length) {
+			if (parentGroup && parentGroup.length) {
 				for ( var i = 0; i < parentGroup.length; i++) {
 					var checkbox = parentGroup[i];
 					result.push(checkbox);