No Jira issue. When a person has no webpages, the group_concat in the query resulted in a non-empty result set: one that had no values but was nonetheless not empty. Added a check to see if the node was null.
This commit is contained in:
parent
b70cb2fb49
commit
937a3abca5
1 changed files with 1 additions and 2 deletions
|
@ -299,7 +299,6 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
||||||
if("desc".equalsIgnoreCase( sortDirection ) ){
|
if("desc".equalsIgnoreCase( sortDirection ) ){
|
||||||
queryString = queryString.replaceAll(" ASC\\(", " DESC(");
|
queryString = queryString.replaceAll(" ASC\\(", " DESC(");
|
||||||
}
|
}
|
||||||
|
|
||||||
ResultSet results = (constructedModel == null) ? selectFromRDFService(
|
ResultSet results = (constructedModel == null) ? selectFromRDFService(
|
||||||
queryString, subjectUri, propertyUri, domainUri, rangeUri) : selectFromConstructedModel(
|
queryString, subjectUri, propertyUri, domainUri, rangeUri) : selectFromConstructedModel(
|
||||||
queryString, subjectUri, propertyUri, domainUri, rangeUri, constructedModel);
|
queryString, subjectUri, propertyUri, domainUri, rangeUri, constructedModel);
|
||||||
|
@ -307,7 +306,7 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
||||||
while (results.hasNext()) {
|
while (results.hasNext()) {
|
||||||
QuerySolution soln = results.nextSolution();
|
QuerySolution soln = results.nextSolution();
|
||||||
RDFNode node = soln.get(objectKey);
|
RDFNode node = soln.get(objectKey);
|
||||||
if (node.isURIResource()) {
|
if (node != null && node.isURIResource()) {
|
||||||
list.add(QueryUtils.querySolutionToStringValueMap(soln));
|
list.add(QueryUtils.querySolutionToStringValueMap(soln));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue