Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 2cb416e

Browse files
Merge branch 'master' into update-ref-setting
2 parents 5de1a62 + 7ef2e76 commit 2cb416e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePushUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public static WritableMap convertJsonObjectToWritable(JSONObject jsonObj) {
6767
String key = it.next();
6868
Object obj = null;
6969
try {
70-
obj = jsonObj.get(key);
70+
if (!jsonObj.isNull(key)) {
71+
obj = jsonObj.get(key);
72+
}
7173
} catch (JSONException jsonException) {
7274
// Should not happen.
7375
throw new CodePushUnknownException("Key " + key + " should exist in " + jsonObj.toString() + ".", jsonException);

0 commit comments

Comments
 (0)