Avoiding NPE

This commit is contained in:
Gunnar Morling 2013-06-02 23:01:31 +02:00
parent 940e2fb99b
commit 211338381b

View File

@ -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