IntelliJ Idea mapstruct java: Internal error in the mapping processor: java.lang.NullPointerException

Antonio picture Antonio · Dec 2, 2020 · Viewed 10.9k times · Source

After upgrading to the version 2020.3 of Idea i get a NullPointerException for the mapping processor. If anybody has a clue... Thank you!

Answer

CrazyCoder picture CrazyCoder · Dec 2, 2020

The solution is to update MapStruct to 1.4.1.Final or later version, see this issue for more details.

You can also add -Djps.track.ap.dependencies=false at File | Settings (Preferences on macOS) | Build, Execution, Deployment | Compiler | Build process VM options as a workaround.