Remove NullPointerException, also don't save SimpleDateFormat and Date variables.