fix NPE in IG publisher
This commit is contained in:
parent
75e701ec8d
commit
4287b1ae68
|
@ -515,24 +515,29 @@ public abstract class BaseWorkerContext implements IWorkerContext {
|
|||
|
||||
@Override
|
||||
public ValidationResult validateCode(ValidationOptions options, String system, String code, String display) {
|
||||
assert options != null;
|
||||
Coding c = new Coding(system, code, display);
|
||||
return validateCode(options, c, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ValidationResult validateCode(ValidationOptions options, String system, String code, String display, ValueSet vs) {
|
||||
assert options != null;
|
||||
Coding c = new Coding(system, code, display);
|
||||
return validateCode(options, c, vs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ValidationResult validateCode(ValidationOptions options, String code, ValueSet vs) {
|
||||
assert options != null;
|
||||
Coding c = new Coding(null, code, null);
|
||||
return validateCode(options.guessSystem(), c, vs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ValidationResult validateCode(ValidationOptions options, Coding code, ValueSet vs) {
|
||||
assert options != null;
|
||||
|
||||
CacheToken cacheToken = txCache != null ? txCache.generateValidationToken(options, code, vs) : null;
|
||||
ValidationResult res = null;
|
||||
if (txCache != null)
|
||||
|
|
|
@ -69,4 +69,8 @@ public class ValidationOptions {
|
|||
public String toJson() {
|
||||
return "\"lang\":\""+language+"\", \"useServer\":\""+Boolean.toString(useServer)+"\", \"useClient\":\""+Boolean.toString(useClient)+"\", \"guessSystem\":\""+Boolean.toString(guessSystem)+"\"";
|
||||
}
|
||||
|
||||
public static ValidationOptions defaults() {
|
||||
return new ValidationOptions("en-US");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue