Skip to content

Commit 4963def

Browse files
Copilotlaeubi
andcommitted
Add null check for delegate parameter in facade constructor
Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com>
1 parent 996c2d7 commit 4963def

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

org.eclipse.m2e.maven.runtime/src/main/java/org/eclipse/m2e/internal/maven/compat/LifecycleExecutionPlanCalculatorFacade.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class LifecycleExecutionPlanCalculatorFacade {
2727
private final LifecycleExecutionPlanCalculator delegate;
2828

2929
public LifecycleExecutionPlanCalculatorFacade(LifecycleExecutionPlanCalculator delegate) {
30+
if(delegate == null) {
31+
throw new IllegalArgumentException("delegate cannot be null");
32+
}
3033
this.delegate = delegate;
3134
}
3235

0 commit comments

Comments
 (0)