java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference

Hello. I am having an issue where if I press the new crime button the app crashes. The crash occurs in this method in

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?

I figured out my error. in the Crime class I had the method:

public Crime() {
    mId = UUID.randomUUID();

it should have been:

public Crime() {