You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because the SparseArray could be outdated if the dialog button is clicked after a modification (e.g. a new thread is created). The stacktrace below doesn't exactly reflect that (because the database is empty, but who knows), anyway the problem is there and should be fixed: take all message or thread ids and store them in a data structure to be used in the dialog callback.
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at android.widget.HeaderViewListAdapter.getItem(HeaderViewListAdapter.java:185)
at android.widget.AdapterView.getItemAtPosition(AdapterView.java:764)
at org.kontalk.ui.AbstractComposeFragment$3.onClick(AbstractComposeFragment.java:565)
at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:367)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18440)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5034)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(NativeStart.java)
delete threads
delete messages
The text was updated successfully, but these errors were encountered:
This is because the SparseArray could be outdated if the dialog button is clicked after a modification (e.g. a new thread is created). The stacktrace below doesn't exactly reflect that (because the database is empty, but who knows), anyway the problem is there and should be fixed: take all message or thread ids and store them in a data structure to be used in the dialog callback.
The text was updated successfully, but these errors were encountered: