1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Auto event: fixed null bind

This commit is contained in:
M66B 2023-03-31 12:31:41 +02:00
parent f1b6d6a80f
commit 3958f1ef95

View file

@ -81,7 +81,9 @@ public class CalendarHelper {
" OR " + CalendarContract.Calendars.CALENDAR_DISPLAY_NAME + " = ?)"
: CalendarContract.Calendars.CALENDAR_DISPLAY_NAME + " = ?") +
" AND " + CalendarContract.Events.UID_2445 + " = ?",
new String[]{selectedAccount, selectedName, uid},
selectedName == null
? new String[]{selectedAccount, selectedAccount, uid}
: new String[]{selectedAccount, selectedName, uid},
null)) {
if (cursor.moveToNext())
return cursor.getLong(0);