manasouza/ContactNumberSearch

[crash] java.lang.NullPointerException - br.com.mls.contactnumbersearch.NumberSearchActivity.getPhoneContactList

Opened this issue · 2 comments

Android version: 6.0
Device:
Oppo
CPH1701
3072 MB
Qualcomm MSM8940
720x1280
Supported

Caused by: java.lang.NullPointerException:

at br.com.mls.contactnumbersearch.NumberSearchActivity.getPhoneContactList (NumberSearchActivity.java:166)

at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:82)

at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:1)

at android.os.AsyncTask$2.call (AsyncTask.java:295)

at java.util.concurrent.FutureTask.run (FutureTask.java:237)

Unable to reproduce.

Tested on the Moto G5 (7.0). It's not the affected device, but if it failed on getPhoneContactList, this might be the first time, as this method is executed when no data is at shared prefs.

Exported contact from phone (.vcf file) and imported into AVD (through DDMS)

Tools > Android > Android Device Monitor

  • File Explorer tab: found where is "Android" folder (/storage/1D19-460D)

Tested on AVD after import contacts but could not reproduce