From 1ed8b286333696fcf7186aa3e8c1f2f035b63052 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 29 Jul 2024 11:09:19 +0300 Subject: [PATCH] Bugfix in react::map_vector --- libs/react/include/psemek/react/map.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/react/include/psemek/react/map.hpp b/libs/react/include/psemek/react/map.hpp index b8f26017..e1ce86ad 100644 --- a/libs/react/include/psemek/react/map.hpp +++ b/libs/react/include/psemek/react/map.hpp @@ -81,6 +81,8 @@ namespace psemek::react for (auto const & arg : args) { + if (!arg) continue; + internal_tokens.push_back(arg.subscribe(detail::internal_tag{}, internal_subscriber)); external_tokens.push_back(arg.subscribe(external_subscriber)); }