config definition better error handling

This commit is contained in:
rusefillc 2021-05-01 15:12:39 -04:00
parent 1b62525871
commit c2721985b0
3 changed files with 3 additions and 1 deletions

View File

@ -3598,4 +3598,4 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
addTool = afrTableGenerator, "AFR Table Generator", afrTableTbl
#endif
;
; po

Binary file not shown.

View File

@ -385,6 +385,8 @@ public class ConfigDefinition {
Map<Integer, String> listAnalogInputs,
Map<Integer, String> listEventInputs,
Map<Integer, String> listSwitchInputs) {
Objects.requireNonNull(id, "id");
Objects.requireNonNull(className, "classname for " + id);
switch (className) {
case "outputs":