Skip to content

Commit

Permalink
fix a null pointer problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ghxiao committed Oct 2, 2013
1 parent a461e5a commit bc99380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OWLProfilization.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public static void main(String... args)

for (OWLProfileViolation violation : report.getViolations()) {
OWLAxiom axiom = violation.getAxiom();
manager.removeAxiom(ontology, axiom);
if (axiom != null){
manager.removeAxiom(ontology, axiom);
}
}

manager.saveOntology(ontology, System.out);
Expand Down

0 comments on commit bc99380

Please sign in to comment.