fix minor loading issue

This commit is contained in:
Grahame Grieve 2020-07-25 08:39:27 +10:00
parent 50dbc9bda1
commit ea2d1b6576
1 changed files with 8 additions and 3 deletions

View File

@ -806,9 +806,14 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
String[] list = displayHint.split(";");
for (String item : list) {
String[] parts = item.split(":");
if (parts.length != 2)
throw new DefinitionException("error reading display hint: '"+displayHint+"'");
hints.put(parts[0].trim(), parts[1].trim());
if (parts.length == 1) {
hints.put("value", parts[0].trim());
} else {
if (parts.length != 2) {
throw new DefinitionException("error reading display hint: '"+displayHint+"'");
}
hints.put(parts[0].trim(), parts[1].trim());
}
}
}
}