Skip to content

Commit

Permalink
Fix NPE crash when deleting a db table
Browse files Browse the repository at this point in the history
Fixes #280
  • Loading branch information
valldrac committed Feb 20, 2024
1 parent ecf01ab commit a852e8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,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, emptyArray())
}

fun SupportSQLiteDatabase.insertInto(tableName: String): InsertBuilderPart1 {
Expand Down

0 comments on commit a852e8d

Please sign in to comment.