From 3c5f91d9a681171883a9f1666be8ca6044a347f5 Mon Sep 17 00:00:00 2001 From: Simon Redman Date: Sun, 7 Jun 2020 13:59:31 -0700 Subject: [PATCH] [SMS Helper] Also handle IllegalArgumentException when constructing a MessageAccessException --- src/org/kde/kdeconnect/Helpers/SMSHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Helpers/SMSHelper.java b/src/org/kde/kdeconnect/Helpers/SMSHelper.java index d073f725..b34cd993 100644 --- a/src/org/kde/kdeconnect/Helpers/SMSHelper.java +++ b/src/org/kde/kdeconnect/Helpers/SMSHelper.java @@ -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) {