From 30e558de752bc1c9711de04458628134b42e814c Mon Sep 17 00:00:00 2001 From: qianyong325 Date: Wed, 9 Apr 2025 16:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=85=A5=E6=B3=95?= =?UTF-8?q?=E6=8C=87=E9=92=88=E6=9C=AA=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qianyong325 --- services/src/ime_info_inquirer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/src/ime_info_inquirer.cpp b/services/src/ime_info_inquirer.cpp index 98aadbb8a..cd43ef315 100644 --- a/services/src/ime_info_inquirer.cpp +++ b/services/src/ime_info_inquirer.cpp @@ -822,6 +822,10 @@ int32_t ImeInfoInquirer::GetDefaultInputMethod(const int32_t userId, std::shared return ErrorCode::NO_ERROR; } prop = GetImeProperty(userId, defaultIme->name, defaultIme->id); + if (prop == nullptr) { + IMSA_HILOGE("prop is nullptr"); + return ErrorCode::ERROR_NULL_POINTER; + } return ErrorCode::NO_ERROR; } -- Gitee