Does JaxorSession.getJaxorContext() need to be checked for null before JaxorSession.commit() is called?
I was getting NPE using the filter at the very end of my session. Is it possible that it could be a bug in my code that is calling JaxorSession.end() ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does JaxorSession.getJaxorContext() need to be checked for null before JaxorSession.commit() is called?
I was getting NPE using the filter at the very end of my session. Is it possible that it could be a bug in my code that is calling JaxorSession.end() ?
Yes, if you call JaxorSession.end(), then the context wil be cleared.
Why are you calling JaxorSession.end()? Are you manually rolling back the session?
Thanks,
Mike Rettig
Jaxor Developer