Skip to content

Commit

Permalink
Per issue #2476, in get_diag_val, added check that DiagVal array has …
Browse files Browse the repository at this point in the history
…some actual values. SL ci-skip-all
  • Loading branch information
Seth Linden committed Sep 22, 2023
1 parent 20d2e25 commit 5e8587b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcode/vx_tc_util/track_point.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e8587b

Please sign in to comment.