Error and crashes on file "select contact"

in #utopian-io7 years ago

Project Information



Expected behavior

Supposedly, I can access the "Select contacts" file and the Application does not stop by itself.

Actual behavior

When I open the app and try to access the file "select contacts" it suddenly becomes inaccessible and crashes, and I get a new problem ie the app stops by itself without any command and the problem is pure crash.

How to reproduce

  • Install and open app
  • Run the app, and click the file select icon
  • Then click back on the file "select contact" and please select the contact you want to access
  • Then you will find crashes.


  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 0.2

Recording Of The Bug

Proof of Work Done

https://github.com/apadet90

Logcat

05-20 03:20:10.364 26166 26166 E AndroidRuntime: FATAL EXCEPTION: main 05-20 03:20:10.364 26166 26166 E AndroidRuntime: Process: com.android.contacts, PID: 26166 05-20 03:20:10.364 26166 26166 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.contacts.list.OnContactPickerActionListener.onPickContactAction(android.net.Uri)' on a null object reference 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.contacts.list.ContactPickerFragment.pickContact(ContactPickerFragment.java:242) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.contacts.list.ContactPickerFragment.onItemClick(ContactPickerFragment.java:229) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.contacts.list.ContactEntryListFragment.onItemClick(ContactEntryListFragment.java:1089) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.contacts.list.ContactPickerFragment.onItemClick(ContactPickerFragment.java:209) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.contacts.list.ContactEntryListFragment.onListItemClick(ContactEntryListFragment.java:1096) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.app.ListFragment$2.onItemClick(ListFragment.java:160) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:310) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1145) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3081) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java:3947) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5441) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738) 05-20 03:20:10.364 26166 26166 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

Sort:  

Explanation for the score:

  • The bug (maybe just an error) you mentioned above shows only in the connection failure situation. And somehow it is just a rare case .
  • As the video above showing , the Ocelot app goes crash , which is caused by the crash of other app.In other words , I come to a conclusion that only few other abnormal app will only lead to the crash of Ocelot .It is not an universal case .

Thank you very much sir for the explanation. I understand now.
@cha0s0000

Hi , it can be replicated in my end .
Thank you
To view those questions and the relevant answers related to your post,Click here



Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.


Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!Hey @apadet90

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!