diff --git a/core/src/container.cpp b/core/src/container.cpp index a7a80e7d..b4acd63e 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -512,7 +512,7 @@ void SerialContainerPrivate::storeRequiredInterface(container_type::const_iterat // called by parent asking for pruning of this' interface void SerialContainerPrivate::pruneInterface(InterfaceFlags accepted) { if (children().empty()) - return; + throw InitStageException(*me(), "container is empty"); // reading is always allowed if current interface flags do so accepted |= (interfaceFlags() & InterfaceFlags({ READS_START, READS_END }));