Skip to content

Instantly share code, notes, and snippets.

@bdionne
Created June 8, 2017 14:12
Show Gist options
  • Save bdionne/bc31201f58f3bcf2b0b4aa3d46759206 to your computer and use it in GitHub Desktop.
Save bdionne/bc31201f58f3bcf2b0b4aa3d46759206 to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/org/protege/editor/owl/client/LocalHttpClient.java b/src/main/java/org/protege/editor/owl/client/LocalHttpClient.java
index 309444d..d992421 100644
--- a/src/main/java/org/protege/editor/owl/client/LocalHttpClient.java
+++ b/src/main/java/org/protege/editor/owl/client/LocalHttpClient.java
@@ -672,7 +672,7 @@ public class LocalHttpClient implements Client, ClientSessionListener {
} finally {
dlg.setVisible(false);
}
- }).get();
+ });
dlg.setVisible(true);
String newChecksum = getSnapshotChecksum(projectId).get();
@@ -691,9 +691,7 @@ public class LocalHttpClient implements Client, ClientSessionListener {
} catch (IOException e) {
logger.error(e.getMessage(), e);
throw new ClientRequestException("Unable to send request to server (see error log for details)", e);
- } catch (InterruptedException | ExecutionException e) {
- throw new RuntimeException(e);
- }
+ }
}
private Response post(String url, RequestBody body, boolean withCredential)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment