Skip to content

Commit 11028a5

Browse files
committed
Fixed NPE
1 parent 3f4660e commit 11028a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/com/atomgraph/linkeddatahub/resource/acl

src/main/java/com/atomgraph/linkeddatahub/resource/acl/Access.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public Response get(@QueryParam(QUERY) Query unused,
132132
Query authQuery = new SetResultSetValues().apply(authPss.asQuery(), docTypesResult);
133133
assert authQuery.toString().contains("VALUES");
134134

135-
Model authModel = getEndpointAccessor().loadModel(authQuery, defaultGraphUris, namedGraphUris);
135+
Model authModel = getEndpointAccessor().loadModel(authQuery, List.of(), List.of());
136136
// special case where the agent is the owner of the requested document - automatically grant acl:Read/acl:Append/acl:Write access
137137
if (isOwner(accessTo, agent))
138138
{
@@ -167,7 +167,7 @@ protected boolean isOwner(Resource accessTo, Resource agent)
167167
ParameterizedSparqlString pss = getDocumentOwnerQuery();
168168
pss.setParams(qsm);
169169

170-
ResultSetRewindable docOwnerResult = getEndpointAccessor().select(pss.asQuery(), null, null);
170+
ResultSetRewindable docOwnerResult = getEndpointAccessor().select(pss.asQuery(), List.of(), List.of());
171171
//loadResultSet(getApplication().getService(), getDocumentOwnerQuery(), qsm); // could use ASK query in principle
172172
try
173173
{

0 commit comments

Comments
 (0)