New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nullptr in 3.0 due to result type definition. #1821
Comments
Reproducer in attached PR. |
@sjaakd I have reproduced this exception. The problem is here org.mapstruct.ap.test.mypackage.Issue1821Mapper.Target not assignable to: org.mapstruct.ap.test.mypackage.Issue1821Mapper.ExtendedTarget. Is it acceptable for us? |
While many parameters of Your proposal does not take away the cause of the problem, it solves the symptoms. The solution is not to copy the resultType when inheriting. I guess that's somewhere done in |
done.. resolved by PR #1822 |
…ruct#1822) (cherry picked from commit ade4f4d)
Internal error in the mapping processor: java.lang.NullPointerException at org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.build(BeanMappingMethod.java:201) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMappingMethods(MapperCreationProcessor.java:373) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMapper(MapperCreationProcessor.java:149) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:120) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:74) at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:283) at org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:263) at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:221) at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:152)
The text was updated successfully, but these errors were encountered: