Commit 0ef8543
authored
[BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior (opensearch-project#843)
* Catch ArrayIndexOutOfBoundsException when detector is missing
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
* Add a check on SearchHits.getHits() length
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
* Remove index out of bounds exception
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
---------
Signed-off-by: Megha Goyal <goyamegh@amazon.com>1 parent e3362f6 commit 0ef8543
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- src/main/java/org/opensearch/securityanalytics/transport
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
0 commit comments