summaryrefslogtreecommitdiff
path: root/gr-filter/lib
diff options
context:
space:
mode:
authorTom Rondeau2013-04-05 10:02:16 -0400
committerTom Rondeau2013-04-05 10:02:16 -0400
commit19ca8542d138398c2ef3c81ed0ecf5af628a0f44 (patch)
tree0285edf35f28642c880e02c1d49fb6349b6093db /gr-filter/lib
parentcac997eee4c0989c5a01133d4ed3e70b07723732 (diff)
downloadgnuradio-19ca8542d138398c2ef3c81ed0ecf5af628a0f44.tar.gz
gnuradio-19ca8542d138398c2ef3c81ed0ecf5af628a0f44.tar.bz2
gnuradio-19ca8542d138398c2ef3c81ed0ecf5af628a0f44.zip
filter: added exception when using interpolating filter with no taps provided.
Diffstat (limited to 'gr-filter/lib')
-rw-r--r--gr-filter/lib/interp_fir_filter_XXX_impl.cc.t4
1 files changed, 4 insertions, 0 deletions
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++) {