diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java index eb099bd9e..b0eb0c4d9 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java @@ -67,7 +67,9 @@ public static WritableMap convertJsonObjectToWritable(JSONObject jsonObj) { String key = it.next(); Object obj = null; try { - obj = jsonObj.get(key); + if (!jsonObj.isNull(key)) { + obj = jsonObj.get(key); + } } catch (JSONException jsonException) { // Should not happen. throw new CodePushUnknownException("Key " + key + " should exist in " + jsonObj.toString() + ".", jsonException);