Modified to send an empty string instead of a null parameter 63/321763/1
authorInhong Han <inhong1.han@samsung.com>
Thu, 27 Mar 2025 23:34:46 +0000 (08:34 +0900)
committerInhong Han <inhong1.han@samsung.com>
Thu, 27 Mar 2025 23:34:46 +0000 (08:34 +0900)
Change-Id: I77dac06bdc56bf7a66496c0a72af363637a22580

inputmethod/src/inputmethod.cpp

index f7bada906390da600ea1b6db887f16d93b7029bf..8c845dc960c576b831e25653a6cd4627d2867573 100644 (file)
@@ -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;
 }