mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 14:15:14 +00:00
[SMS Helper] Also handle IllegalArgumentException when constructing a MessageAccessException
This commit is contained in:
@@ -363,7 +363,7 @@ public class SMSHelper {
|
|||||||
}
|
}
|
||||||
} while ((numberToGet == null || toReturn.size() < numberToGet) && myCursor.moveToNext());
|
} while ((numberToGet == null || toReturn.size() < numberToGet) && myCursor.moveToNext());
|
||||||
}
|
}
|
||||||
} catch (SQLiteException e) {
|
} catch (SQLiteException | IllegalArgumentException e) {
|
||||||
String[] unfilteredColumns = {};
|
String[] unfilteredColumns = {};
|
||||||
try (Cursor unfilteredColumnsCursor = context.getContentResolver().query(uri, null, null, null, null)) {
|
try (Cursor unfilteredColumnsCursor = context.getContentResolver().query(uri, null, null, null, null)) {
|
||||||
if (unfilteredColumnsCursor != null) {
|
if (unfilteredColumnsCursor != null) {
|
||||||
|
Reference in New Issue
Block a user