Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a6b3a44

Browse files
committed
Fix null issue
1 parent 9916db9 commit a6b3a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impeller/scene/scene_entity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SceneEntity {
4242
private:
4343
virtual bool OnRender(SceneEncoder& encoder, const Camera& camera) const;
4444

45-
SceneEntity* parent_;
45+
SceneEntity* parent_ = nullptr;
4646
std::vector<std::shared_ptr<SceneEntity>> children_;
4747

4848
FML_DISALLOW_COPY_AND_ASSIGN(SceneEntity);

0 commit comments

Comments
 (0)