MockHttpServletResponse.getDateHeader fails with NPE for non-existing header [SPR-16160] #20708
Labels
in: test
Issues in the test module
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Juergen Hoeller opened SPR-16160 and commented
MockHttpServletResponse.getDateHeader
doesn't check for the existence of the corresponding header and ends up callingDateFormat.parse
with anull
value. Aligned withHttpServletRequest.getDateHeader()
, it should simply return -1 in such a case.Affects: 4.3.12, 5.0.1
Issue Links:
Referenced from: commits a75dd2d, 80a0cf7, dc0a934
Backported to: 4.3.13
The text was updated successfully, but these errors were encountered: