Skip to content

Commit 2c70cfb

Browse files
authored
fix json parse error (#327)
1 parent 9e381e6 commit 2c70cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-android-sdk-appsync/src/main/java/com/amazonaws/mobileconnectors/appsync/AppSyncCustomNetworkInvoker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void onResponse(@Nonnull Call call, @Nonnull Response response) throws IO
240240

241241
if (persistentMutationsCallback != null) {
242242
persistentMutationsCallback.onResponse(new PersistentMutationsResponse(
243-
jsonObject.getJSONObject("data"),
243+
jsonObject.optJSONObject("data"),
244244
jsonObject.optJSONArray("errors"),
245245
persistentOfflineMutationObject.responseClassName,
246246
persistentOfflineMutationObject.recordIdentifier));

0 commit comments

Comments
 (0)