Fix NPE
This commit is contained in:
parent
896568c0f7
commit
952dc7dd01
|
@ -486,7 +486,7 @@ public class Element extends Base {
|
||||||
setUserData("fhir.decorations", decorations);
|
setUserData("fhir.decorations", decorations);
|
||||||
}
|
}
|
||||||
decorations.add(new ElementDecoration(DecorationType.TYPE, profile.getUserString("path"), definition.getPath()));
|
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("\\:");
|
String[] details = tail(definition.getId()).split("\\:");
|
||||||
decorations.add(new ElementDecoration(DecorationType.SLICE, null, details[1]));
|
decorations.add(new ElementDecoration(DecorationType.SLICE, null, details[1]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue