mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-09 14:31:17 +00:00
fix minor loading issue
This commit is contained in:
parent
50dbc9bda1
commit
ea2d1b6576
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user