CalcConfig does not handle empty IMT array
If an empty array is specified for the imt element of the hazard configuration, CalcConfig should either:
- throw an error when hazard config is parsed, or
- populate the empty array with the default set of IMTs
Currently, the calculation proceeds and throws NoSuchElementException with a message "Got more than one input Future failure." from the transforms.
-
imtelement is omitted: the default set of IMTs is used and calculation succeeds -
imtelement is assigned an array of IMTs,["PGA", "SA0P1", ...]- -
imtelement is assigned an empty array,[]- calculation runs but throws exceptions