From 5e8587b0a686dce1ba2664329b1dde8c660ad315 Mon Sep 17 00:00:00 2001 From: Seth Linden Date: Fri, 22 Sep 2023 11:00:53 -0600 Subject: [PATCH] Per issue #2476, in get_diag_val, added check that DiagVal array has some actual values. SL ci-skip-all --- src/libcode/vx_tc_util/track_point.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcode/vx_tc_util/track_point.cc b/src/libcode/vx_tc_util/track_point.cc index 5d5fc7ad08..6ed0d43fdf 100644 --- a/src/libcode/vx_tc_util/track_point.cc +++ b/src/libcode/vx_tc_util/track_point.cc @@ -736,7 +736,7 @@ double TrackPoint::get_diag_val(const StringArray &diag_names, const string cur_ int i; double diag_val; - if(diag_names.has(cur_diag_name, i)) + if(diag_names.has(cur_diag_name, i) && DiagVal.n() > 0) diag_val = DiagVal[i]; else diag_val = bad_data_double;