“IntelliJ Idea mapstruct java: Internal error in the mapping processor: java.lang.NullPointerException” is an error I have encountered severally when using Intelli J IDEA to run my Spring applications. Please find below steps to resolve the issue.

The solution is to add -Djps.track.ap.dependencies=false at File | Settings | Build, Execution, Deployment | Compiler | Build process VM options as a workaround.

 

 

The alternative is to update Mapstruct, and if you have swagger in your pom file, you will need to exclude mapstruct first.

Share: