You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johan Compagner (JIRA)" <ji...@apache.org> on 2007/12/16 19:38:44 UTC

[jira] Closed: (WICKET-1187) WicketTester NPE on redirect

     [ https://issues.apache.org/jira/browse/WICKET-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner closed WICKET-1187.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-rc3
         Assignee: Johan Compagner

Should be already fixed in rc2

> WicketTester NPE on redirect
> ----------------------------
>
>                 Key: WICKET-1187
>                 URL: https://issues.apache.org/jira/browse/WICKET-1187
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>            Reporter: Jason Anderson
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.0-rc3
>
>         Attachments: testernpe.tgz
>
>
> Trying to test a redirect after a form submit causes a NullPointerException in some cases
> java.lang.NullPointerException
> 	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
> 	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
> 	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
> 	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
> 	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue
> attached is a quickstart that reproduces the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.