Skip to content

Commit

Permalink
Block call until engine ready #ahdis/matchbox/331
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunibe committed Jan 15, 2025
1 parent 62793fb commit 2b05c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private FhirVersionEnum extractFhirVersion(final String header) {
public String compileAndSerializeMap(final String mapText,
final FhirVersionEnum fhirVersion,
final @Nullable String structureMapId) throws IOException {
StructureMap mapR5 = MatchboxEngineSupport.mainEngine.parseMapR5(mapText);
StructureMap mapR5 = matchboxEngineSupport.getMatchboxEngine("default", null, false, false).parseMapR5(mapText);
if (structureMapId != null) {
mapR5.setId(structureMapId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class MatchboxEngineSupport {

protected static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(MatchboxEngineSupport.class);

public static MatchboxEngine mainEngine = null;
private static MatchboxEngine mainEngine = null;
private EngineSessionCache sessionCache;

private boolean initialized = false;
Expand Down

0 comments on commit 2b05c89

Please sign in to comment.