Skip to content

Commit 329505b

Browse files
committed
fix: null handling
1 parent f2ce516 commit 329505b

File tree

1 file changed

+2
-2
lines changed
  • packages/firebase_database/firebase_database/android/src/main/kotlin/io/flutter/plugins/firebase/database

1 file changed

+2
-2
lines changed

packages/firebase_database/firebase_database/android/src/main/kotlin/io/flutter/plugins/firebase/database/TransactionHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class TransactionHandler @JvmOverloads constructor(
2525

2626
@NonNull
2727
override fun doTransaction(@NonNull currentData: MutableData): Transaction.Result {
28-
val snapshotMap = HashMap<String, Any>().apply {
28+
val snapshotMap = HashMap<String, Any?>().apply {
2929
put(Constants.KEY, currentData.key ?: "")
3030
put(Constants.VALUE, currentData.value)
3131
}
3232

33-
val transactionArgs = HashMap<String, Any>().apply {
33+
val transactionArgs = HashMap<String, Any?>().apply {
3434
put(Constants.SNAPSHOT, snapshotMap)
3535
put(Constants.TRANSACTION_KEY, transactionKey)
3636
}

0 commit comments

Comments
 (0)