flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.getCursor
See original GitHub issueGetting following error:
java.lang.NullPointerException
flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.getCursor
Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:355)
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.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.content.ContentResolver.query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)' on a null object reference
at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.getCursor(ContactsServicePlugin.java:104)
at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.access$500(ContactsServicePlugin.java)
at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.doInBackground(ContactsServicePlugin.java:81)
at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.doInBackground(ContactsServicePlugin.java)
at android.os.AsyncTask$2.call(AsyncTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Fetching contacts in flutter - dart - Stack Overflow
I am trying to get contacts from device device using 'contacts_service' plugin. It is working fine on my device ...
Read more >contacts_service | Flutter Package - Pub.dev
A Flutter plugin to retrieve and manage contacts on Android and iOS devices. ... Get all contacts on device List<Contact> contacts = await...
Read more >연락처 허락 코드를 동작하면 꺼지는 현상 문의 - 코딩애플
ContactsServicePlugin.getCursor(ContactsServicePlugin.java:521) E/AndroidRuntime( 3688): at flutter.plugins.contactsservice.contactsservice.
Read more >A Flutter plugin to retrieve and manage contacts on Android ...
ContactsServicePlugin.getCursor(ContactsServicePlugin.java:104) at flutter.plugins.contactsservice.contactsservice.
Read more >flutter_contacts from lukasgit - GithubHelp
ContactsServicePlugin.getCursor(ContactsServicePlugin.java:205) E/AndroidRuntime(21167): at flutter.plugins.contactsservice.contactsservice.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lukasgit I think this is reoccurring, Our users are facing this issue in production. contact_service version :
0.6.3
Sorry for my ignorance if it is not the same issue or permission problem.
affecting devices for example:
log:
Fixed in PR #208