You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by tomasz bandura <to...@gmail.com> on 2010/06/23 16:53:35 UTC
GAE and redirection problem
Hello,
Another error after deploying on GAE ( of course it works locally).
Regards
Tomasz
1237: buffer.append("=");
1238:
buffer.append(ClickUtils.encodeUrl(paramValue, context));
1239: }
1240: }
1241: if (i.hasNext()) {
1242: buffer.append("&");
1243: }
1244: }
1245:
1246: if (buffer.length() > 0) {
*1247*: if (location.contains("?")) {
1248: location += "&" + buffer.toString();
1249: } else {
1250: location += "?" + buffer.toString();
1251: }
1252: }
1253: }
1254:
1255: redirect = location;
1256: }
1257:
java.lang.NullPointerException
at org.apache.click.Page.setRedirect(Page.java:1247)
at org.apache.click.Page.setRedirect(Page.java:1284)
at org.myapp.page.PostEditPage.onOkClicked(PostEditPage.java:70)
The code in my application below, method "onOkClicked()":
68: Map<String,Long> params = new HashMap<String,Long>();
69: params.put("topic", post.getTopic());
70: setRedirect(PostListAdminPage.class,params);