kontalk / androidclient

Kontalk official Android client
https://www.kontalk.org
GNU General Public License v3.0
571 stars 194 forks source link

Check null fingerprint in ignoring all fingerprints in a group #1270

Closed daniele-athome closed 5 years ago

daniele-athome commented 5 years ago

Not checking against null. Probably a non-Kontalk user inside a group.

java.lang.NullPointerException: fingerprint
       at org.kontalk.provider.Keyring.setTrustLevel + 144(Keyring.java:144)
       at org.kontalk.ui.GroupInfoFragment$GroupMembersAdapter.ignoreAll + 748(GroupInfoFragment.java:748)
       at org.kontalk.ui.GroupInfoFragment$3$1.onClick + 265(GroupInfoFragment.java:265)
       at com.afollestad.materialdialogs.MaterialDialog.onClick + 410(MaterialDialog.java:410)
       at android.view.View.performClick + 5637(View.java:5637)
       at android.view.View$PerformClick.run + 22433(View.java:22433)
       at android.os.Handler.handleCallback + 751(Handler.java:751)
       at android.os.Handler.dispatchMessage + 95(Handler.java:95)
       at android.os.Looper.loop + 154(Looper.java:154)
       at android.app.ActivityThread.main + 6186(ActivityThread.java:6186)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 889(ZygoteInit.java:889)
       at com.android.internal.os.ZygoteInit.main + 779(ZygoteInit.java:779)