I think Igor proposal, session.exists(), is correct and it could be added without
any impact.


>i think thats better then an npe, didnt even know we were doing that. so
> either this or add a session.exists() so you can test for it.
> -Igor
 On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
 > I thought about that myself too. I'd be fine letting
 > RequestCycle.get(), Session.get() and Application.get() return null if
 > the thread local is not set. What do others think of this?
 > Eelco
 > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
 > > Hi, I was wondering why Session.get() throws a WicketRuntimeException if
 > the
 > > session does not exists, in my app I define an AuthorizationStrategy and
 > I'm
 > > also using some spring interceptors where I get a user object that is
 > saved
 > > in the session but I had to include a try/catch block in each case to
 > > prevent a NEP in the former case. If the session is null why it does not
 > > return it?
 > >
 > > Thanks.
 > >
 > > Jaime.

All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to