From ecc0e5624998a893e256d3a005f571b0e43ac085 Mon Sep 17 00:00:00 2001 From: Inhong Han Date: Fri, 28 Mar 2025 08:34:46 +0900 Subject: [PATCH] Modified to send an empty string instead of a null parameter Change-Id: I77dac06bdc56bf7a66496c0a72af363637a22580 --- inputmethod/src/inputmethod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputmethod/src/inputmethod.cpp b/inputmethod/src/inputmethod.cpp index f7bada9..8c845dc 100644 --- a/inputmethod/src/inputmethod.cpp +++ b/inputmethod/src/inputmethod.cpp @@ -2909,7 +2909,7 @@ EXPORT_API int ime_recapture_string(int offset, int len, const char *preedit, co retVal = _check_privilege(); if (retVal != IME_ERROR_NONE) return retVal; - g_core.recapture_string(offset, len, preedit, commit, attrs); + g_core.recapture_string(offset, len, preedit ? preedit : "", commit ? commit : "", attrs); return IME_ERROR_NONE; } -- 2.34.1