Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
#200 - fixed bug where the an options argument is not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhazlewood committed Jun 3, 2015
1 parent 277a5b7 commit ef03fce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ public <T extends Resource, R extends Resource> R create(String parentHref, T re

@Override
public <T extends Resource & Saveable> void save(T resource) {
save(resource, (Options)null);
String href = resource.getHref();
Assert.hasText(href, HREF_REQD_MSG);
save(href, resource, resource.getClass(), null);
}

@Override
Expand Down

0 comments on commit ef03fce

Please sign in to comment.