Skip to content

Commit

Permalink
Merge pull request #1114 from zilin375/hapiFhir001
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
jamesagnew committed Feb 2, 2019
2 parents ea84f2c + 952dc7d commit b7ba529
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public void markValidation(StructureDefinition profile, ElementDefinition defini
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]));
}
Expand Down

0 comments on commit b7ba529

Please sign in to comment.