Chapter 10 Crash


#1

I’m getting a crash after following pages 205-208.

The offending lines of code in CrimeFragment are,
mDateButton.setText(mCrime.getDate().toString());
mSolvedCheckBox.setChecked(mCrime.isSolved());

If I comment these lines out the blank crime fragment page presents itself. I’m on a Mac.
Thank you.


#2

Withdrawn, figured it out, sorry for the noise.


#3

For those like me who come wandering in with the same problem, let me share my solution:

In CrimeLab.java, the method getCrime didn’t return any Crime because I used == instead of equals().

Hope this helps someone who made the same mistake. =)