Skip to content

Commit 170fd49

Browse files
committed
Adding exception when trying to update without configuring
1 parent 12c056b commit 170fd49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/filters/filter_chain.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ class FilterChain
190190
*/
191191
bool update(const T & data_in, T & data_out)
192192
{
193+
if (!configured_) {
194+
throw std::runtime_error("The update cannot be called without configuring the filter chain!");
195+
}
193196
bool result;
194197
size_t list_size = reference_pointers_.size();
195198
if (list_size == 0) {

0 commit comments

Comments
 (0)