Skip to content

Add check against missing 0 value for conditions

Marco Clemencic requested to merge protect-against-missing-0-cond into master

If the requested time point is before the first condition start, GitCondDB returns an invalid IOV. We usually protect against it by adding a default condition value for time point 0, but if that is missing we should stop right away as the code downstream does not expect missing condition values.

This change introduces the check and adds a specific test.

We this change merged, the segfault discussed in !418 (comment 7781736) becomes an informative exception.

/cc @tfulghes @samarian

Validated by

  • Core Software
  • RTA
  • Simulation
Edited by Gloria Corti

Merge request reports