fix xts crash

Signed-off-by: lzr <liuzengrui1@huawei.com>
This commit is contained in:
lzr 2024-11-12 10:42:25 +08:00
parent ae299e5551
commit 2b07d2723d

View File

@ -244,6 +244,7 @@ void AceAbility::OnStart(const Want& want, sptr<AAFwk::SessionInfo> sessionInfo)
"and apiReleaseType: %{public}s, useNewPipe: %{public}d",
apiCompatibleVersion, apiTargetVersion, apiReleaseType.c_str(), useNewPipe);
OHOS::sptr<OHOS::Rosen::Window> window = Ability::GetWindow();
CHECK_NULL_VOID(window);
std::shared_ptr<AceAbility> self = std::static_pointer_cast<AceAbility>(shared_from_this());
OHOS::sptr<AceWindowListener> aceWindowListener = new AceWindowListener(self);
// register surface change callback and window mode change callback