2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

[SMS Helper] Also handle IllegalArgumentException when constructing a MessageAccessException

This commit is contained in:
Simon Redman
2020-06-07 13:59:31 -07:00
parent 460bcba9d5
commit 3c5f91d9a6

View File

@@ -363,7 +363,7 @@ public class SMSHelper {
}
} while ((numberToGet == null || toReturn.size() < numberToGet) && myCursor.moveToNext());
}
} catch (SQLiteException e) {
} catch (SQLiteException | IllegalArgumentException e) {
String[] unfilteredColumns = {};
try (Cursor unfilteredColumnsCursor = context.getContentResolver().query(uri, null, null, null, null)) {
if (unfilteredColumnsCursor != null) {