Skip to content

Commit

Permalink
Merge pull request #70 from justinhrobbins/feature_60
Browse files Browse the repository at this point in the history
closes #60
  • Loading branch information
justinhrobbins committed Jan 5, 2014
2 parents cf36441 + 8460d3a commit fd6d4fe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public D findOne(Long id) throws ServiceException {
public D findOne(Long id, Set<String> fields) throws ServiceException {
E resultEntity = getService().findOne(id);

if (resultEntity == null) return null;

if (CollectionUtils.isNotEmpty(fields)) {
fieldInitializer.initializeEntity(resultEntity, fields);
}
Expand Down

0 comments on commit fd6d4fe

Please sign in to comment.