java.lang.RuntimeException : contactsservice.Item.getPhoneLabel
See original GitHub issueCurrently, I am getting this error with contacts_service : ^0.6.1 and ^0.6.3
.
Dart Version:
Dart SDK version: 2.12.3 (stable)
It says:
java.lang.NullPointerException flutter.plugins.contactsservice.contactsservice.Item.getPhoneLabel java.lang.RuntimeException: at android.os.AsyncTask$4.done (AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383) at java.util.concurrent.FutureTask.setException (FutureTask.java:252) at java.util.concurrent.FutureTask.run (FutureTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641) at java.lang.Thread.run (Thread.java:923) Caused by: java.lang.NullPointerException: at android.provider.ContactsContract$CommonDataKinds$Phone.getTypeLabel (ContactsContract.java:6295) at flutter.plugins.contactsservice.contactsservice.Item.getPhoneLabel (Item.java:4) at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.getContactsFrom (ContactsServicePlugin.java:213) at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.access$300 (ContactsServicePlugin.java) at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.doInBackground (ContactsServicePlugin.java:114) at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.doInBackground (ContactsServicePlugin.java) at android.os.AsyncTask$3.call (AsyncTask.java:394) at java.util.concurrent.FutureTask.run (FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641) at java.lang.Thread.run (Thread.java:923)
It was working fine in the version contacts_service : ^0.4.6
I needed to upgrade it to avoid other plugins incompatibilities.
Awaiting your quick response.
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top GitHub Comments
Having the same issue on contacts_service: ^0.6.3.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.