Fixed bug with nullpointerexception while filtering by sale date.