Skip to content

Commit

Permalink
Added verification to avoid NullPointer exception in EsHTTPProxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeryNi committed Oct 23, 2024
1 parent 84a3400 commit 9cef292
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ private void processResponse(ServiceContext context, HttpSession httpSession,
addRelatedTypes(doc, relatedTypes, context);
}

if (doc.has("_source")) {
if (doc.has("_source") && doc.get("_source").has("documentStandard") ) {
ObjectNode sourceNode = (ObjectNode) doc.get("_source");

String metadataSchema = doc.get("_source").get("documentStandard").asText();
Expand Down

0 comments on commit 9cef292

Please sign in to comment.