!38508 UpdateFontScale新增判空

Merge pull request !38508 from guan0/master
This commit is contained in:
openharmony_ci 2024-07-23 03:47:45 +00:00 committed by Gitee
commit 0bb86d415d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1205,7 +1205,9 @@ UIContentErrorCode UIContentImpl::CommonInitializeForm(
reinterpret_cast<NativeReference*>(ref), context);
}
}
UpdateFontScale(context->GetConfiguration());
if (context) {
UpdateFontScale(context->GetConfiguration());
}
return UIContentErrorCode::NO_ERRORS;
}