oxen-io / session-android

A private messenger for Android.
https://getsession.org
GNU General Public License v3.0
1.73k stars 165 forks source link

[BUG] Database column index lookups causing sporadic crashes #1478

Open AL-Session opened 1 month ago

AL-Session commented 1 month ago

Code of conduct

Self-training on how to write a bug report

Is there an existing issue for this?

Current Behavior

Under some circumstances which are yet to be understood, Session v1.18.2 will attempt to lookup SQLite column indexes via a tryOrThrow call - and it seems to fail to identify a column name so throws a CursorIndexOutOfBoundsException which isn't caught and hence causes a crash.

See ticket SES-1889 for further details.

Expected Behavior

Under no circumstances should the app crash.

Steps To Reproduce

Unknown how to reproduce - but it appears in the Play Store crash reports.

Android Version

Android APIs 29 through 34

Session Version

1.18.2

Anything else?

No response