fix NPE processing issue from template
This commit is contained in:
parent
845921da9f
commit
44189e9bde
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue