Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4-M1, 1.4-M2, 1.4-M3, 1.4-RC1, 1.4-RC2, 1.4-RC3, 1.4-RC4, 1.4-RC5, 1.4-RC6, 1.4-RC7
-
None
-
Server & Browsers running on:
Linux DLKA-59HZ13J 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux
Browser: Firefox and Konqueror
URL: http://svn.apache.org/repos/asf/wicket/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 796623
Server & Browsers running on: Linux DLKA-59HZ13J 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux Browser: Firefox and Konqueror URL: http://svn.apache.org/repos/asf/wicket/trunk Repository Root: http://svn.apache.org/repos/asf Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 Revision: 796623
Description
KittenCaptcha example broken
Nullpointer thrown
ERROR - RequestCycle -
java.lang.NullPointerException
at org.apache.wicket.extensions.captcha.kittens.KittenCaptchaPanel$2.onEvent(KittenCaptchaPanel.java:183)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
Following diff does the trick. But maybe this is platform dependent as I currently can test undre linux environment.
Index: src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java
===================================================================
— src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (revision 796623)
+++ src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (working copy)
@@ -170,7 +170,7 @@
// ajax request passing in mouse co-ordinates
return generateCallbackScript("showLoadingIndicator(); wicketAjaxGet('" +
getCallbackUrl(onlyTargetActivePage) +
- "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
+ "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
}
@SuppressWarnings("unchecked")