Hello. I am having an issue where if I press the new crime button the app crashes. The crash occurs in this method in CrimeLab.java
private static ContentValues getContentValues(Crime crime) {
ContentValues values = new ContentValues();
values.put(CrimeTable.Cols.UUID, crime.getId().toString());
values.put(CrimeTable.Cols.TITLE, crime.getTitle());
values.put(CrimeTable.Cols.DATE, crime.getDate().getTime()); // line that breaks
values.put(CrimeTable.Cols.SOLVED, crime.isSolved() ? 1 : 0);
return values;
}
I put a breakpoint on the line that crashes and it appears that the date is null
I have gone through the chapter but I am really lost. Does anyone have an idea of where I went wrong?