WebFacadeImpl.saveErrorParametersToSession() causes NPE
Brought to you by:
jonesde
In the method WebFacadeImpl.saveErrorParametersToSession, we are copying requestParameters and requestAttributes to a new Map and storing it(to be used in the next request). However, we are not doing a null check before accessing them. So, if we have error in the scrren but dont have requestAttributes, we get NPE here. When I added null check in this method for both parameters and attrbutes, it solved my problem. Similar code also exists in saveRequestParametersToSession, so, may be we need to add null check there as well.
Thanks Vasanth, that's a very good catch. This is fixed in commit #268a5f5.