[ https://issues.apache.org/jira/browse/MNG-6982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Falko Modler updated MNG-6982: ------------------------------ Description: This constructor of PluginParameterExpressionEvaluator is not requiring a MojoExecution parameter: https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L96-L99 But if created this way, the evaluator will fail with a NullPointerException while trying to get the MojoDescriptor here: https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L205 was: This constructor of is not requiring a MojoExecution parameter: https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L96-L99 But if created this way, the evaluator will fail with a NullPointerException while trying to get the MojoDescriptor here: https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L205 > PluginParameterExpressionEvaluator fails with NPE if created without > MojoExecution > ---------------------------------------------------------------------------------- > > Key: MNG-6982 > URL: https://issues.apache.org/jira/browse/MNG-6982 > Project: Maven > Issue Type: Bug > Components: Plugin API > Affects Versions: 3.6.3 > Environment: Maven 3.6.3 > Reporter: Falko Modler > Priority: Major > > This constructor of PluginParameterExpressionEvaluator is not requiring a > MojoExecution parameter: > https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L96-L99 > But if created this way, the evaluator will fail with a NullPointerException > while trying to get the MojoDescriptor here: > https://github.com/apache/maven/blob/78f605e377a6450828e8b3e516d132e6797603df/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java#L205 -- This message was sent by Atlassian Jira (v8.3.4#803005)