From 871db45754615af261288e9f07c85d1321c1479e Mon Sep 17 00:00:00 2001 From: Dawid Drozd Date: Sat, 18 Jan 2020 13:22:46 +0100 Subject: [PATCH] Add extra assert fail ASAP during debug --- lib/src/dexode/eventbus/permission/PostponeBus.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/dexode/eventbus/permission/PostponeBus.hpp b/lib/src/dexode/eventbus/permission/PostponeBus.hpp index 54e51a9..f27d5ba 100644 --- a/lib/src/dexode/eventbus/permission/PostponeBus.hpp +++ b/lib/src/dexode/eventbus/permission/PostponeBus.hpp @@ -3,6 +3,7 @@ // #pragma once +#include #include #include "dexode/eventbus/Bus.hpp" @@ -25,6 +26,7 @@ public: template constexpr bool postpone(Event event) { + assert(_hideBus != nullptr); return _hideBus->postpone(event); }