question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.RuntimeException : contactsservice.Item.getPhoneLabel

See original GitHub issue

Currently, 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
stha-umscommented, Jan 30, 2022

Having the same issue on contacts_service: ^0.6.3.

0reactions
stale[bot]commented, Jun 11, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Null safety pre-release causes a crash #200 - GitHub
... java.lang.RuntimeException: An error occurred while executing doInB... ... Item.getPhoneLabel(Item.java:42) E/AndroidRuntime( 8046): at ...
Read more >
flutter - App crashes after new update using contacts_service
I was using contacts service a flutter package, and till now it ... NullPointerException: Attempt to invoke virtual method 'java.lang.
Read more >
A Flutter plugin to retrieve and manage contacts on Android ...
Whenever I call await ContactsService. ... flutter.plugins.contactsservice.contactsservice. ... Item.getPhoneLabel(Item.java:42) at ...
Read more >
Lukas Dickie flutter_contacts Issues - Giters
java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found