adding a crashfix

This commit is contained in:
tibbi 2022-11-18 19:53:27 +01:00
parent a666e24445
commit 5b049b4d74
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:5d3439cd6b'
implementation 'com.github.SimpleMobileTools:Simple-Commons:f538687d6e'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -219,8 +219,8 @@ class EventsHelper(val context: Context) {
context.cancelPendingIntent(eventId)
if (config.caldavSync) {
val event = eventsDB.getEventWithId(eventId)
if (event?.getCalDAVCalendarId() != 0) {
context.calDAVHelper.updateCalDAVEvent(event!!)
if (event != null && event.getCalDAVCalendarId() != 0) {
context.calDAVHelper.updateCalDAVEvent(event)
}
}
}