applying previous change to mostSpecificType computation also

This commit is contained in:
stellamit 2011-07-14 16:27:51 +00:00
parent 219ee52a74
commit d37b526ad8

View file

@ -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);
} }