CriminalIntent is crashing

Hello, my criminal intent app is and when I run the debugger, the problem is with the mDateButton, when I set its text like this.
mDateButton.setText(mCrime.get date().toString()); I keep getting a NullPointerException and when I comment that code out, it works just fine, and also, when I call the new Date() directly in the setText it works, ie.
mDateButton.setText(new Date().toString()); it works just fine, then also for the mTitleTextField, when I try to type something in it then it crashes, any help will be appreciated.

can you provide your full code.

Hello, I actually wrote the code again and its now running! Thanks.

1 Like