fix NPE processing issue from template

This commit is contained in:
Grahame Grieve 2024-11-22 22:50:42 +11:00
parent 845921da9f
commit 44189e9bde
3 changed files with 9 additions and 0 deletions

View File

@ -874,6 +874,9 @@ public class ToolingExtensions {
}
private static IssueSeverity mapSeverity(org.hl7.fhir.r4.model.OperationOutcome.IssueSeverity severity) {
if (severity == null) {
return null;
}
switch (severity) {
case ERROR:
return IssueSeverity.ERROR;

View File

@ -903,6 +903,9 @@ public class ToolingExtensions {
}
private static IssueSeverity mapSeverity(org.hl7.fhir.r4b.model.OperationOutcome.IssueSeverity severity) {
if (severity == null) {
return null;
}
switch (severity) {
case ERROR:
return IssueSeverity.ERROR;

View File

@ -1071,6 +1071,9 @@ public class ToolingExtensions {
}
private static IssueSeverity mapSeverity(org.hl7.fhir.r5.model.OperationOutcome.IssueSeverity severity) {
if (severity == null) {
return null;
}
switch (severity) {
case ERROR: return IssueSeverity.ERROR;
case FATAL: return IssueSeverity.FATAL;