Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
* @author Jon Brisbin
* @author Oliver Gierke
* @author Greg Turnquist
* @author Brandon Vulaj
*/
@RepositoryRestController
@SuppressWarnings({ "unchecked" })
Expand Down Expand Up @@ -318,7 +319,7 @@ public ResponseEntity<? extends RepresentationModel<?>> createPropertyReference(
"Cannot PATCH a reference to this singular property since the property type is not a List or a Map.");
}

if (source.getLinks().hasSingleLink()) {
if (!source.getLinks().hasSingleLink()) {
throw new IllegalArgumentException(
"Must send only 1 link to update a property reference that isn't a List or a Map.");
}
Expand Down