Merge pull request #1114 from zilin375/hapiFhir001

Fix NPE
This commit is contained in:
James Agnew 2019-02-02 11:31:43 -05:00 committed by GitHub
commit b7ba529353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ public class Element extends Base {
setUserData("fhir.decorations", decorations);
}
decorations.add(new ElementDecoration(DecorationType.TYPE, profile.getUserString("path"), definition.getPath()));
if (tail(definition.getId()).contains(":")) {
if (definition.getId() != null && tail(definition.getId()).contains(":")) {
String[] details = tail(definition.getId()).split("\\:");
decorations.add(new ElementDecoration(DecorationType.SLICE, null, details[1]));
}