Menu

#2 stripesstuff: SessionStoreInterceptor ActionBean null check

open
nobody
None
5
2012-12-11
2012-12-11
Haggi
No

If the ActionBean is null the Interceptor throws an exception on line 54

// Get all fields with session.
Collection<Field> fields = getSessionFields(context.getActionBean().getClass());

It would be great if you can add a null check to avoid this exception and do nothing, because it's recommended to set the ActionBean to null if you don't want to execute BeforeAfter methods of the associated action bean.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB