From 963c04340fedf8b17c96b0115dafae0588939d32 Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Thu, 12 Oct 2017 09:45:07 +0100 Subject: [PATCH] [VIVO-1401] Don't return a constructed model if there are no construct queries --- .../vitro/webapp/dao/jena/DataPropertyStatementDaoJena.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/dao/jena/DataPropertyStatementDaoJena.java b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/dao/jena/DataPropertyStatementDaoJena.java index e056d4468..cabaef2cf 100644 --- a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/dao/jena/DataPropertyStatementDaoJena.java +++ b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/dao/jena/DataPropertyStatementDaoJena.java @@ -470,7 +470,7 @@ public class DataPropertyStatementDaoJena extends JenaBaseDao implements DataPro String propertyUri, Set constructQueries) { - if (constructQueries == null) { + if (constructQueries == null || constructQueries.isEmpty() ) { return null; }