On Thu, Apr 9, 2009 at 3:48 PM, Serge Baranov <[email protected]> wrote: > Hello Emmanuel, > > That is weird. > > Just a line above I have a code setting another attribute to the same > session and getting yet another attribute. It doesn't throw the NPE. > So, the session is nulled between two getAttribute calls from another > thread? > > To make it more simple, here is the code: > > session.setSetAttribute(foo, bar); => works > SomeClass c = (SomeClass) session.getAttribute(baz); => works > int var = (Integer) session.getAttribute(foobar); => fails with NPE
Or maybe the foobar attribute is not anymore present in the session. What if you do something like : Object foobar = session.getAttribute( foobar ) ? -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
