mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-03 18:09:08 +00:00
fix npe
This commit is contained in:
parent
f854f79ec9
commit
a40446303f
@ -381,7 +381,9 @@ public abstract class BaseWorkerContext implements IWorkerContext {
|
||||
ValueSet result = txClient.expandValueset(vs, p, params);
|
||||
res = new ValueSetExpansionOutcome(result).setTxLink(txLog.getLastId());
|
||||
} catch (Exception e) {
|
||||
res = new ValueSetExpansionOutcome(e.getMessage() == null ? e.getClass().getName() : e.getMessage(), TerminologyServiceErrorClass.UNKNOWN).setTxLink(txLog.getLastId());
|
||||
res = new ValueSetExpansionOutcome(e.getMessage() == null ? e.getClass().getName() : e.getMessage(), TerminologyServiceErrorClass.UNKNOWN);
|
||||
if (txLog != null)
|
||||
res.setTxLink(txLog.getLastId());
|
||||
}
|
||||
txCache.cacheExpansion(cacheToken, res, TerminologyCache.PERMANENT);
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user