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…
Reference in New Issue