Skip to content

Commit

Permalink
ObjectToOptionalConverter uses Optional.ofNullable after ConversionSe…
Browse files Browse the repository at this point in the history
…rvice invocation

Issue: SPR-12589
  • Loading branch information
jhoeller committed Jan 2, 2015
1 parent 6790f55 commit ec84fa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor t
}
else {
Object target = this.conversionService.convert(source, sourceType, new GenericTypeDescriptor(targetType));
return Optional.of(target);
return Optional.ofNullable(target);
}
}

Expand Down

0 comments on commit ec84fa6

Please sign in to comment.