Fixing bug in PropertyEditLinks when requesting an edit link for a property that doesn't exist.
This commit is contained in:
parent
6b6cef2e71
commit
4ea2ae107b
1 changed files with 8 additions and 1 deletions
|
@ -360,7 +360,14 @@ public class PropertyEditLinks extends TagSupport{
|
||||||
String value = dpropStmt.getData();
|
String value = dpropStmt.getData();
|
||||||
Model model = (Model)pageContext.getServletContext().getAttribute("jenaOntModel");
|
Model model = (Model)pageContext.getServletContext().getAttribute("jenaOntModel");
|
||||||
|
|
||||||
String dpropHash = String.valueOf(RdfLiteralHash.makeVitroNsLiteralHash( subject, predicateUri, value, model ));
|
String dpropHash = null;
|
||||||
|
try{
|
||||||
|
dpropHash = String.valueOf(RdfLiteralHash.makeVitroNsLiteralHash( subject, predicateUri, value, model ));
|
||||||
|
}catch(IllegalArgumentException ex){
|
||||||
|
log.debug("could not create hash for " + subject + " " + predicateUri + " " + value);
|
||||||
|
return links;
|
||||||
|
}
|
||||||
|
|
||||||
String dispatchUrl = contextPath + "edit/editDatapropStmtRequestDispatch.jsp";
|
String dispatchUrl = contextPath + "edit/editDatapropStmtRequestDispatch.jsp";
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue