From acfb4a9b9ea74946ff25794346d75f88995f08a7 Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Thu, 11 Apr 2024 17:56:08 -0700 Subject: [PATCH] fix stopwords npe (#2311) Signed-off-by: Jing Zhang --- .../org/opensearch/ml/common/model/MLGuard.java | 4 +++- .../opensearch/ml/common/model/MLGuardTests.java | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/org/opensearch/ml/common/model/MLGuard.java b/common/src/main/java/org/opensearch/ml/common/model/MLGuard.java index 72fc5eb14f..dcb0e65ad7 100644 --- a/common/src/main/java/org/opensearch/ml/common/model/MLGuard.java +++ b/common/src/main/java/org/opensearch/ml/common/model/MLGuard.java @@ -77,7 +77,9 @@ private void fillStopWordsToMap(@NonNull Guardrail guardrail, Map