!1199 当销毁输入法窗口时,窗口侧返回WM_ERROR_NULLPTR时,不返回错误

Merge pull request !1199 from guojin31/master
This commit is contained in:
openharmony_ci 2024-05-25 11:15:36 +00:00 committed by Gitee
commit ca6d27b7ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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)