From 19ca8542d138398c2ef3c81ed0ecf5af628a0f44 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 5 Apr 2013 10:02:16 -0400 Subject: filter: added exception when using interpolating filter with no taps provided. --- gr-filter/lib/interp_fir_filter_XXX_impl.cc.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gr-filter/lib') diff --git a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t index c9127d737..fea3b1c8e 100644 --- a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t +++ b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t @@ -54,6 +54,10 @@ namespace gr { throw std::out_of_range("@IMPL_NAME@: interpolation must be > 0\n"); } + if(taps.size() == 0) { + throw std::runtime_error("@IMPL_NAME@: no filter taps provided.\n"); + } + std::vector<@TAP_TYPE@> dummy_taps; for(unsigned i = 0; i < interpolation; i++) { -- cgit