midhunhk / message-counter

A native Android App which tracks the number of Text messages sent in a cycle written in Kotlin
https://midhunhk.com/message-counter/
Apache License 2.0
21 stars 10 forks source link

java.lang.NullPointerException #29

Closed midhunhk closed 7 years ago

midhunhk commented 7 years ago

Google Play Console reporting with below stack trace.

java.lang.NullPointerException: at com.ae.apps.common.managers.ContactManager.getContactIdFromAddress(ContactManager.java:0) at com.ae.apps.messagecounter.utils.MessageCounterUtils.sortThisMap(MessageCounterUtils.java:0) at <OR>.getMessageCountDegrees(MessageCounterUtils.java:0) at <OR>.getContactMessageList(MessageCounterUtils.java:0) at <OR>.convertAddressToContact(MessageCounterUtils.java:0) at <OR>.getIndexFromDate(MessageCounterUtils.java:0) at <OR>.getWeekStartDate(MessageCounterUtils.java:0) at <OR>.getMessageLimitValue(MessageCounterUtils.java:0) at <OR>.getCycleSentCount(MessageCounterUtils.java:0) at com.ae.apps.messagecounter.activities.MainActivity$1.run(MainActivity.java:0) at java.lang.Thread.run(Thread.java:818)

midhunhk commented 7 years ago

Reported for LG Devices. Could this be device specific? We don't have any recent changes in the reported area. This seems to be an issue present even in V3.1.1 which was release in April 2016.

midhunhk commented 7 years ago

Only reference to ContactManager.getContactIdFromAddress() is from below line. https://github.com/midhunhk/message-counter/blob/master/messageCounter/src/main/java/com/ae/apps/messagecounter/utils/MessageCounterUtils.java#L196

midhunhk commented 7 years ago

This should be fixed based on the latest code in AeAppsLib as well as MessageCounter