[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-13 Thread David Pollak
On Sun, Jul 12, 2009 at 2:00 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Fri, Jul 10, 2009 at 8:12 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: Okay... I just checked in a change to Lift that allows RequestVars to be reset once the session is known. Please do a build with

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-13 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: [...] So, there needed to be a mechanism for flushing cached RequestVars that are dependent on SessionVars when the session identifier changes. Thus, the new trait that signals to the RequestVar mechanism that a RequestVar is dependent on

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-10 Thread Jeppe Nejsum Madsen
On Thu, Jul 9, 2009 at 11:44 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: If it's still a problem, a reproducible example would be great! It's not a showstopper, since I can workaround it by reading the User again: def findMap[T](f: CustomCategory = Box[T]) : List[T] = {

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-10 Thread David Pollak
On Fri, Jul 10, 2009 at 9:28 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Fri, Jul 10, 2009 at 10:35 AM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Thu, Jul 9, 2009 at 11:44 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: If it's still a problem, a reproducible example

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-10 Thread David Pollak
Okay... I just checked in a change to Lift that allows RequestVars to be reset once the session is known. Please do a build with the latest (if you're not building locally, please wait until Hudson finishes spinning the build) and let me know if it works. Thanks, David On Fri, Jul 10, 2009 at

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread David Pollak
Are you doing this as part of an HTTP request or at some other point in the execution of your code (e.g., a background processing thread)? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I get an Empty box when using the value of User.current when trying to

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread Jeppe Nejsum Madsen
Just a normal request from a link in a CRUDify list Sendt fra min iPhone Den 07/07/2009 kl. 18.49 skrev David Pollak feeder.of.the.be...@gmail.com : Are you doing this as part of an HTTP request or at some other point in the execution of your code (e.g., a background processing thread)?

[Lift] Re: NPE Problem with User.current in CRUDify action

2009-07-07 Thread David Pollak
Okay... I see the code path that could cause this issue. Are you doing any re-writing? Are you accessing User.currentUser in your re-writes? On Tue, Jul 7, 2009 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I get an Empty box when using the value of User.current when trying to