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:
Tim Worrall 2015-08-25 10:55:08 -04:00
parent 583aa3791a
commit e77ecc9ebb

View file

@ -118,7 +118,7 @@ public class ManageWebpagesForIndividualGenerator extends BaseEditConfigurationG
while (results.hasNext()) { while (results.hasNext()) {
QuerySolution soln = results.nextSolution(); QuerySolution soln = results.nextSolution();
RDFNode node = soln.get("link"); RDFNode node = soln.get("link");
if (node.isURIResource()) { if (node != null && node.isURIResource()) {
webpages.add(QueryUtils.querySolutionToStringValueMap(soln)); webpages.add(QueryUtils.querySolutionToStringValueMap(soln));
} }
} }