lewismc closed pull request #23: SDAP-86
URL: https://github.com/apache/incubator-sdap-mudrod/pull/23
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/core/src/main/java/org/apache/sdap/mudrod/ontology/process/LocalOntology.java 
b/core/src/main/java/org/apache/sdap/mudrod/ontology/process/LocalOntology.java
index f106594..7cbe789 100644
--- 
a/core/src/main/java/org/apache/sdap/mudrod/ontology/process/LocalOntology.java
+++ 
b/core/src/main/java/org/apache/sdap/mudrod/ontology/process/LocalOntology.java
@@ -102,7 +102,9 @@ public void load() {
     }
     ontArrayList = new ArrayList<>();
     try {
-      ontArrayList.add(ontURL.toURI().toString());
+      if(ontURL != null){
+        ontArrayList.add(ontURL.toURI().toString());
+      }
     } catch (URISyntaxException e) {
       LOG.error("Error in URL syntax, please check your Ontology resource: ", 
e);
     }
diff --git 
a/core/src/main/java/org/apache/sdap/mudrod/ontology/process/OntologyLinkCal.java
 
b/core/src/main/java/org/apache/sdap/mudrod/ontology/process/OntologyLinkCal.java
index 0c5301d..23fa348 100644
--- 
a/core/src/main/java/org/apache/sdap/mudrod/ontology/process/OntologyLinkCal.java
+++ 
b/core/src/main/java/org/apache/sdap/mudrod/ontology/process/OntologyLinkCal.java
@@ -91,6 +91,7 @@ public Object execute() {
       e.printStackTrace();
     } catch (InterruptedException e) {
       e.printStackTrace();
+      Thread.currentThread().interrupt();
     } catch (ExecutionException e) {
       e.printStackTrace();
     } finally {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to