Merge pull request #39 from vadi2/fix-crash-no-mapping-uri

Fix snapshot generation crash when a mapping doesn't have a uri
This commit is contained in:
Grahame Grieve 2019-06-03 19:19:33 +10:00 committed by GitHub
commit ec9c6a31a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ public class ProfileUtilities extends TranslatingUtilities {
for (StructureDefinitionMappingComponent baseMap : base.getMapping()) {
boolean found = false;
for (StructureDefinitionMappingComponent derivedMap : derived.getMapping()) {
if (derivedMap.getUri().equals(baseMap.getUri())) {
if (derivedMap.getUri() != null && derivedMap.getUri().equals(baseMap.getUri())) {
found = true;
break;
}