AdamaJava / adamajava

Other
14 stars 5 forks source link

check isize values #244

Closed holmeso closed 3 years ago

holmeso commented 3 years ago

Description

Isize values are provided to qsv in an ini file that is supplied at runtime. At present, if invalid (lower bound is greater than upper bound) values are supplied, the application will keep on going, with unknown consequences.

The aims of this PR are to examine the isize values provided and throw an exception as early as possible should invalid values be present.

Fixes #142

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Code has been tested against an ini file with invalid/valid isize values and fails/proceeds accordingly. Existing unit tests pass

Checklist: