Merge branch '3.2.x' into 3.3.x

Closes gh-42925
This commit is contained in:
Andy Wilkinson
2024-10-29 14:57:43 +00:00

View File

@@ -165,10 +165,12 @@ class OnClassCondition extends FilteringSpringBootCondition {
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
if (this.failure != null) {
ReflectionUtils.rethrowRuntimeException(this.failure);
Throwable failure = this.failure;
if (failure != null) {
ReflectionUtils.rethrowRuntimeException(failure);
}
return this.outcomes;
ConditionOutcome[] outcomes = this.outcomes;
return (outcomes != null) ? outcomes : new ConditionOutcome[0];
}
}