jira-importer opened a new issue, #345: URL: https://github.com/apache/maven-build-cache-extension/issues/345
**[Charles Mager](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER309210)** opened **[MBUILDCACHE-118](https://issues.apache.org/jira/browse/MBUILDCACHE-118?redirect=false)** and commented When running `Maven > Generate Sources and Update Folders` from IntelliJ with the [Maven Build Cache Extension](https://maven.apache.org/extensions/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.](https://github.com/apache/maven-build-cache-extension/blob/e2f31d9c359b146d9bb5ad70ee037ac6a25d7ce4/src/main/java/org/apache/maven/buildcache/ChainedListener.java). 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](https://issues.apache.org/jira/secure/attachment/13075742/build-cache-issue.zip) (_5.64 kB_) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
