Android: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.Object.toString()’ on a null object reference

The array in your ArrayAdapter contains at least one entry that is null. There must be no nulls there.

The array is populated in getDiaryDBDataList() so the problem is also there.

Leave a Comment