Stability fixes

This commit is contained in:
Grahame Grieve 2024-01-10 09:06:31 +11:00
parent 7c6d5fa688
commit 765e41816a
1 changed files with 5 additions and 3 deletions

View File

@ -135,7 +135,9 @@ public class TerminologyClientManager {
if (!internalErrors.contains(msg)) {
internalErrors.add(msg);
}
e.printStackTrace();
if (!monitorServiceURL.contains("tx.fhir.org")) {
e.printStackTrace();
}
}
return getMasterClient().getAddress();
@ -211,7 +213,7 @@ public class TerminologyClientManager {
this.cache = cache;
this.cacheFile = null;
if (cache != null) {
if (cache != null && cache.getFolder() != null) {
try {
cacheFile = new File(Utilities.path(cache.getFolder(), "system-map.json"));
if (cacheFile.exists()) {
@ -227,7 +229,7 @@ public class TerminologyClientManager {
}
private void save() {
if (cacheFile != null) {
if (cacheFile != null && cache.getFolder() != null) {
JsonObject json = new JsonObject();
for (String s : Utilities.sorted(resMap.keySet())) {
JsonObject si = new JsonObject();