Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0abeb16

Browse files
Update null doesn't remove key #229
1 parent 323cb07 commit 0abeb16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase.android.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ firebase.toHashMap = function(obj) {
5353
var node = new java.util.HashMap();
5454
for (var property in obj) {
5555
if (obj.hasOwnProperty(property)) {
56-
if (obj[property] !== null) {
56+
if (obj[property] === null) {
57+
node.put(property, null);
58+
} else {
5759
switch (typeof obj[property]) {
5860
case 'object':
5961
node.put(property, firebase.toHashMap(obj[property], node));

0 commit comments

Comments
 (0)