From b5d2701c229988ced79b07387e2c5d5e76d942b8 Mon Sep 17 00:00:00 2001 From: guojin31 Date: Sat, 25 May 2024 10:31:19 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9A=E9=94=80=E6=AF=81=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E6=97=B6=EF=BC=8C=E8=BF=94=E5=9B=9EWM=5FERROR=5FNULLP?= =?UTF-8?q?TR=E4=B8=8D=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guojin31 --- .../native/inputmethod_ability/src/input_method_panel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/native/inputmethod_ability/src/input_method_panel.cpp b/frameworks/native/inputmethod_ability/src/input_method_panel.cpp index 4a9f0483..d32fad18 100644 --- a/frameworks/native/inputmethod_ability/src/input_method_panel.cpp +++ b/frameworks/native/inputmethod_ability/src/input_method_panel.cpp @@ -127,7 +127,8 @@ int32_t InputMethodPanel::DestroyPanel() } auto result = window_->Destroy(); IMSA_HILOGI("ret = %{public}d", result); - return result == WMError::WM_OK ? ErrorCode::NO_ERROR : ErrorCode::ERROR_OPERATE_PANEL; + return (result == WMError::WM_OK || result == WMError::WM_ERROR_NULLPTR) ? ErrorCode::NO_ERROR + : ErrorCode::ERROR_OPERATE_PANEL; } int32_t InputMethodPanel::Resize(uint32_t width, uint32_t height)