diff --git a/src/ftxui/component/container.cpp b/src/ftxui/component/container.cpp index 52efe7a..0c9135e 100644 --- a/src/ftxui/component/container.cpp +++ b/src/ftxui/component/container.cpp @@ -229,7 +229,7 @@ class TabContainer : public ContainerBase { } bool OnMouseEvent(Event event) override { - return ActiveChild()->OnEvent(event); + return ActiveChild() && ActiveChild()->OnEvent(event); } };