!141 去掉setuicontent中的context空指针判断

Merge pull request !141 from 陈海莹/upload
This commit is contained in:
openharmony_ci
2022-01-22 09:01:48 +00:00
committed by Gitee
-4
View File
@@ -207,10 +207,6 @@ WMError WindowImpl::SetUIContent(const std::string& contentInfo,
NativeEngine* engine, NativeValue* storage, bool isdistributed)
{
WLOGFI("SetUIContent");
if (context_.get() == nullptr) {
WLOGFE("SetUIContent context_ is nullptr id: %{public}d", property_->GetWindowId());
return WMError::WM_ERROR_NULLPTR;
}
WLOGFI("contentInfo: %{public}s, context_:%{public}p", contentInfo.c_str(), context_.get());
uiContent_ = Ace::UIContent::Create(context_.get(), engine);
if (uiContent_ == nullptr) {