Skip to content

Commit 4963def

Browse files
Copilotlaeubi
andcommitted
Add null check for delegate parameter in facade constructor
Co-authored-by: laeubi <[email protected]>
1 parent 996c2d7 commit 4963def

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)