fix for NPE

This commit is contained in:
Grahame Grieve 2020-04-04 00:01:00 +11:00
parent 6d1fe2ff1e
commit 31f80f29f8
1 changed files with 3 additions and 1 deletions

View File

@ -588,7 +588,9 @@ public class ProfileUtilities extends TranslatingUtilities {
// hack around a problem in R4 definitions (somewhere?)
for (ElementDefinition ed : derived.getSnapshot().getElement()) {
for (ElementDefinitionMappingComponent mm : ed.getMapping()) {
mm.setMap(mm.getMap().trim());
if (mm.hasMap()) {
mm.setMap(mm.getMap().trim());
}
}
for (ElementDefinitionConstraintComponent s : ed.getConstraint()) {
if (s.hasSource()) {