Fix NPE in deleteAll call.

This commit is contained in:
Alex Hart 2024-06-03 10:46:57 -03:00 committed by Cody Henthorne
parent a021b400bd
commit 164f089d37

View file

@ -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 {