Hi Igor, Thanks for replying. I already added null checks and additional logging to see which of the two (RequestCycle or Response) is actually null. It will take some time to get it in into production though so if you have any ideas in the meanwhile I'll be glad to hear them :-).
Lars On Tue, Sep 16, 2008 at 4:46 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > not really sure when either would be null, seems strange. why dont you > add null checks and if one of them is null dump the stacktrace into > your log. > > -igor > > On Tue, Sep 16, 2008 at 1:47 AM, lars vonk <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> In the constructor of a custom websession we write a coockie as follows: >> >> ((WebResponse) cycle.getResponse()).addCookie(cookie); >> >> In production this (sometimes) nullpointers. So either requestcyle or >> response is null. I would like to know in what usecases this can >> occur? I haven't been able to reproduce this yet in tests. I have >> split the statement to figure out which of the two is actually null, >> but would still like to know in what cases this can occur. >> >> Thanks in advance, >> >> Lars >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
