applying previous change to mostSpecificType computation also
This commit is contained in:
parent
219ee52a74
commit
d37b526ad8
1 changed files with 6 additions and 0 deletions
|
@ -1172,6 +1172,12 @@ public class SimpleReasoner extends StatementListener {
|
||||||
} catch (NullPointerException npe) {
|
} catch (NullPointerException npe) {
|
||||||
log.error("a NullPointerException was received while computing mostSpecificType annotations. Halting inference computation.");
|
log.error("a NullPointerException was received while computing mostSpecificType annotations. Halting inference computation.");
|
||||||
return;
|
return;
|
||||||
|
} catch (JenaException je) {
|
||||||
|
if (je.getMessage().equals("Statement models must no be null")) {
|
||||||
|
log.error("Exception while computing mostSpecificType annotations.: " + je.getMessage() + ". Halting inference computation.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
log.error("Exception while computing mostSpecificType annotations.: " + je.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Exception while computing mostSpecificType annotations", e);
|
log.error("Exception while computing mostSpecificType annotations", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue