Skip to content

Commit b665758

Browse files
committed
PATCH fix for empty models
1 parent af3dc6a commit b665758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/atomgraph/linkeddatahub/server/model/impl/DirectGraphStoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public Response patch(UpdateRequest updateRequest)
404404
changedModel.add(existingModel.listStatements(resource, null, (RDFNode) null));
405405

406406
// if PATCH results in an empty model, treat it as a DELETE request
407-
if (changedModel.isEmpty()) return delete(Boolean.FALSE, getURI());
407+
if (changedModel.isEmpty()) return delete();
408408

409409
validate(changedModel); // this would normally be done transparently by the ValidatingModelProvider
410410
put(dataset.getDefaultModel(), Boolean.FALSE, getURI());

0 commit comments

Comments
 (0)