ObjectToOptionalConverter uses Optional.ofNullable after ConversionService invocation
Issue: SPR-12589
This commit is contained in:
parent
6790f55667
commit
ec84fa6da3
|
|
@ -69,7 +69,7 @@ final class ObjectToOptionalConverter implements ConditionalGenericConverter {
|
|||
}
|
||||
else {
|
||||
Object target = this.conversionService.convert(source, sourceType, new GenericTypeDescriptor(targetType));
|
||||
return Optional.of(target);
|
||||
return Optional.ofNullable(target);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue