From e64611333b20f78c8c707a46bd60af6879401d52 Mon Sep 17 00:00:00 2001 From: Chase Engelbrecht Date: Fri, 16 Feb 2024 13:18:00 -0800 Subject: [PATCH] Fix ClassCastException Signed-off-by: Chase Engelbrecht --- .../opensearch/commons/alerting/action/GetMonitorResponse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/opensearch/commons/alerting/action/GetMonitorResponse.kt b/src/main/kotlin/org/opensearch/commons/alerting/action/GetMonitorResponse.kt index 7bd274d4..4ac633b7 100644 --- a/src/main/kotlin/org/opensearch/commons/alerting/action/GetMonitorResponse.kt +++ b/src/main/kotlin/org/opensearch/commons/alerting/action/GetMonitorResponse.kt @@ -67,7 +67,7 @@ class GetMonitorResponse : BaseResponse { } else { out.writeBoolean(false) } - out.writeList((associatedWorkflows ?: emptyList()) as MutableList?) + out.writeList((associatedWorkflows ?: emptyList())) } @Throws(IOException::class)