fix bug digging into property type

This commit is contained in:
Grahame Grieve 2023-04-21 12:24:37 +08:00
parent 696f060da3
commit a3dc74f3e2
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class Property {
String tn = definition.getType().get(0).getWorkingCode();
for (int i = 1; i < definition.getType().size(); i++) {
if (!tn.equals(definition.getType().get(i).getWorkingCode()))
throw new Error("logic error, gettype when types > 1");
return null; // though really, we shouldn't get here - type != null when definition.getType.size() > 1, or it should be
}
return tn;
} else