Fix NPE in deleteAll call.
This commit is contained in:
parent
a021b400bd
commit
164f089d37
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ fun SupportSQLiteDatabase.delete(tableName: String): DeleteBuilderPart1 {
|
|||
* Deletes all data in the table.
|
||||
*/
|
||||
fun SupportSQLiteDatabase.deleteAll(tableName: String): Int {
|
||||
return this.delete(tableName, null, null)
|
||||
return this.delete(tableName, null, arrayOfNulls<String>(0))
|
||||
}
|
||||
|
||||
fun SupportSQLiteDatabase.insertInto(tableName: String): InsertBuilderPart1 {
|
||||
|
|
Loading…
Add table
Reference in a new issue