slightly improve error message

This commit is contained in:
Jonathan Shook 2023-09-11 13:43:09 -05:00
parent 112ad332cd
commit c0171dcec6

View File

@ -102,7 +102,7 @@ public class OpsOwner extends RawOpFields {
itemizedMaps.add(stmtDetails);
} else {
throw new RuntimeException("Unknown inner value type on map-based statement definition: name:'" + entries.getKey() + "', type:'" +
entries.getValue().getClass() + "', only maps and strings are recognized.");
(entries.getValue() == null ? "NULL" : entries.getValue().getClass()) + "', only maps and strings are recognized.");
}
}
setOpsFieldByType(itemizedMaps);