use empty importId if null

This commit is contained in:
tibbi 2017-07-30 11:30:11 +02:00
parent a34f61a562
commit 8804518572
1 changed files with 1 additions and 1 deletions

View File

@ -699,7 +699,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
var repeatRule = cursor.getIntValue(COL_REPEAT_RULE) var repeatRule = cursor.getIntValue(COL_REPEAT_RULE)
val title = cursor.getStringValue(COL_TITLE) val title = cursor.getStringValue(COL_TITLE)
val description = cursor.getStringValue(COL_DESCRIPTION) val description = cursor.getStringValue(COL_DESCRIPTION)
val importId = cursor.getStringValue(COL_IMPORT_ID) val importId = cursor.getStringValue(COL_IMPORT_ID) ?: ""
val flags = cursor.getIntValue(COL_FLAGS) val flags = cursor.getIntValue(COL_FLAGS)
val repeatLimit = cursor.getIntValue(COL_REPEAT_LIMIT) val repeatLimit = cursor.getIntValue(COL_REPEAT_LIMIT)
val eventType = cursor.getIntValue(COL_EVENT_TYPE) val eventType = cursor.getIntValue(COL_EVENT_TYPE)