From 0abeb1666ed3c83d934aeeb5de058641e6b72438 Mon Sep 17 00:00:00 2001 From: Eddy Verbruggen Date: Mon, 2 Jan 2017 20:15:56 +0100 Subject: [PATCH] Update null doesn't remove key #229 --- firebase.android.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firebase.android.js b/firebase.android.js index 6e22e6bd..6d0526a6 100755 --- a/firebase.android.js +++ b/firebase.android.js @@ -53,7 +53,9 @@ firebase.toHashMap = function(obj) { var node = new java.util.HashMap(); for (var property in obj) { if (obj.hasOwnProperty(property)) { - if (obj[property] !== null) { + if (obj[property] === null) { + node.put(property, null); + } else { switch (typeof obj[property]) { case 'object': node.put(property, firebase.toHashMap(obj[property], node));