HellenNA8_96 config folder #3724

resiliency
This commit is contained in:
rusefillc 2021-12-29 23:48:06 -05:00
parent 42f2eba49d
commit f80601eb87
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -359,6 +359,10 @@ public class ConfigDefinition {
ArrayList<Map<String, Object>> listPins) throws IOException {
Yaml yaml = new Yaml();
Map<String, Object> yamlData = yaml.load(new FileReader(yamlFile));
if (yamlData == null) {
SystemOut.println("Null yaml for " + yamlFile);
return;
}
List<Map<String, Object>> data = (List<Map<String, Object>>) yamlData.get("pins");
if (data == null) {
SystemOut.println("Null yaml for " + yamlFile);