mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Avoiding NPE
This commit is contained in:
parent
940e2fb99b
commit
211338381b
@ -193,7 +193,7 @@ public class MapperGenerationVisitor extends ElementKindVisitor6<Void, Void> {
|
||||
mappingMethod.getParameterName() + "." + property.getSourceReadAccessorName() + "()",
|
||||
property.getTargetType()
|
||||
) : null,
|
||||
conversion != null ? conversion.from(
|
||||
conversion != null && reverseMappingMethod != null ? conversion.from(
|
||||
reverseMappingMethod.getParameterName() + "." + property.getTargetReadAccessorName() + "()",
|
||||
property.getSourceType()
|
||||
) : null
|
||||
|
Loading…
x
Reference in New Issue
Block a user