We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c7598 commit e82df67Copy full SHA for e82df67
API/src/main/java/org/ohnlp/backbone/api/components/xlang/python/PythonBridge.java
@@ -87,7 +87,7 @@ public T getPythonEntryPoint() {
87
private void extractPythonResourcesIfNotExists() {
88
CompletableFuture<PythonEnvironment> env = new CompletableFuture<>();
89
synchronized (JVM_ENVIRONMENTS_BY_BUNDLE_ID) {
90
- if (JVM_ENVIRONMENTS_BY_BUNDLE_ID.contains(this.bundleIdentifier)) {
+ if (JVM_ENVIRONMENTS_BY_BUNDLE_ID.containsKey(this.bundleIdentifier)) {
91
try {
92
// Environment already exists and/or is initializing, just wait for completion and return
93
JVM_ENVIRONMENTS_BY_BUNDLE_ID.get(this.bundleIdentifier).get();
0 commit comments