Skip to content

Commit

Permalink
Fix null return value in PetTypeFormatter.print
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed Apr 3, 2016
1 parent 5398ab4 commit 52ffe51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public PetTypeFormatter(ClinicService clinicService) {

@Override
public String print(PetType petType, Locale locale) {
return petType.getName();
return Objects.toString(petType.getName());
}

@Override
Expand Down

0 comments on commit 52ffe51

Please sign in to comment.