mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-20 20:20:13 -04:00
!141 去掉setuicontent中的context空指针判断
Merge pull request !141 from 陈海莹/upload
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user