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]
