Skip to content

Commit 9abbd09

Browse files
committed
Assert there are no null injection points
1 parent 7b3ef44 commit 9abbd09

File tree

1 file changed

+3
-0
lines changed
  • independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor

1 file changed

+3
-0
lines changed

independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ static Injection forInvokerArgumentLookups(ClassInfo targetBeanClass, MethodInfo
457457
public Injection(AnnotationTarget target, List<InjectionPointInfo> injectionPoints) {
458458
this.target = target;
459459
this.injectionPoints = injectionPoints;
460+
if (injectionPoints.stream().anyMatch(Objects::isNull)) {
461+
throw new IllegalArgumentException("Null injection point detected for " + target);
462+
}
460463
}
461464

462465
boolean isMethod() {

0 commit comments

Comments
 (0)