Description
Charles Mager opened MBUILDCACHE-118 and commented
When running Maven > Generate Sources and Update Folders
from IntelliJ with the Maven Build Cache Extension present, I get this error in the output:
"org.apache.maven.execution.ExecutionListener.projectDiscoveryStarted(org.apache.maven.execution.ExecutionEvent)" because "this.delegate" is null
I think the delegate it refers to is the one in ChainedListener..
I appreciate this works running via the Maven CLI, but for whatever reason IntelliJ doesn't provide a listener with the request. I'm not clear on whether IntelliJ is incorrectly using the API or if the extension should handle this scenario, but it would seem a fairly easy fix to not call the delegate methods if it's not present.
I've attached a repro that would be demonstrated in IntelliJ - just run Generate Sources and Update Folders to see the error.
Affects: 1.2.0
Attachments:
- build-cache-issue.zip (5.64 kB)