Fix NPE when no ontology URI is specified
This commit is contained in:
parent
41be1c22f4
commit
f4c9d23af0
1 changed files with 4 additions and 1 deletions
|
@ -106,7 +106,10 @@ public class JenaExportController extends BaseEditController {
|
|||
String formatParam = vreq.getParameter("format");
|
||||
String subgraphParam = vreq.getParameter("subgraph");
|
||||
String assertedOrInferredParam = vreq.getParameter("assertedOrInferred");
|
||||
StringBuilder ontologyURI = new StringBuilder(vreq.getParameter("ontologyURI"));
|
||||
StringBuilder ontologyURI = new StringBuilder();
|
||||
if (vreq.getParameter("ontologyURI") != null) {
|
||||
ontologyURI.append(vreq.getParameter("ontologyURI"));
|
||||
}
|
||||
|
||||
Model model = null;
|
||||
OntModel ontModel = ModelFactory.createOntologyModel();
|
||||
|
|
Loading…
Add table
Reference in a new issue