mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-07 14:03:27 +01:00
properly handle null attendee name and email at caldav events
This commit is contained in:
parent
17192a2e03
commit
9930ef5e6a
@ -57,7 +57,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.10.13'
|
implementation 'com.simplemobiletools:commons:5.10.15'
|
||||||
implementation 'joda-time:joda-time:2.10.1'
|
implementation 'joda-time:joda-time:2.10.1'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
||||||
|
@ -513,8 +513,8 @@ class CalDAVHelper(val context: Context) {
|
|||||||
cursor = context.contentResolver.query(uri, projection, selection, null, null)
|
cursor = context.contentResolver.query(uri, projection, selection, null, null)
|
||||||
if (cursor?.moveToFirst() == true) {
|
if (cursor?.moveToFirst() == true) {
|
||||||
do {
|
do {
|
||||||
val name = cursor.getStringValue(CalendarContract.Attendees.ATTENDEE_NAME)
|
val name = cursor.getStringValue(CalendarContract.Attendees.ATTENDEE_NAME) ?: ""
|
||||||
val email = cursor.getStringValue(CalendarContract.Attendees.ATTENDEE_EMAIL)
|
val email = cursor.getStringValue(CalendarContract.Attendees.ATTENDEE_EMAIL) ?: ""
|
||||||
val status = cursor.getIntValue(CalendarContract.Attendees.ATTENDEE_STATUS)
|
val status = cursor.getIntValue(CalendarContract.Attendees.ATTENDEE_STATUS)
|
||||||
val relationship = cursor.getIntValue(CalendarContract.Attendees.ATTENDEE_RELATIONSHIP)
|
val relationship = cursor.getIntValue(CalendarContract.Attendees.ATTENDEE_RELATIONSHIP)
|
||||||
val attendee = Attendee(0, name, email, status, "", false, relationship)
|
val attendee = Attendee(0, name, email, status, "", false, relationship)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user