Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/com/contentstack/sdk/QueryResult.java
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,7 @@
import org.json.JSONObject;

import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand DownExpand Up@@ -105,7 +106,8 @@ private void extractSchemaArray() {
private void extractContentObject() {
try {
if (receiveJson != null && receiveJson.has("content_type")) {
JSONObject jsonObject = receiveJson.getJSONObject("content_type");
Object contentTypeObject = receiveJson.get("content_type");
JSONObject jsonObject = new JSONObject((Map<?, ?>) contentTypeObject);
if (jsonObject != null) {
contentObject = jsonObject;
}
Expand Down