The user is able to log and track habits, and I want they to be able to sort their habits in a way like this: - Today - Yesterday - Search for specific date
The problem comes when I press the button. I get an ArgumentNullException right at the line where my ImagePath variable is declared (I guess it is because I removed one of the records from HabitLogs):