Skip to content

Commit

Permalink
LPS-204009 search-experiences-service: Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
peerkar authored and brianchandotcom committed Dec 18, 2023
1 parent 457b792 commit 78e7316
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ private JSONArray _getDynamicTemplatesJSONArray(String indexName) {
}

private boolean _hasTextEmbeddingDynamicTemplates(JSONArray jsonArray) {
if (jsonArray == null) {
return false;
}

for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);

Expand Down

0 comments on commit 78e7316

Please sign in to comment.