From 69338ecdfac441f106d3ca42a6fc2125efb7db3c Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Tue, 2 May 2023 10:12:46 -0300 Subject: [PATCH] Only Observe AuthenticationManager if it is not null Closes gh-13084 --- .../annotation/web/builders/HttpSecurity.java | 2 +- .../HttpSecurityConfigurationTests.java | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java b/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java index da2bc756f5..1eb2e27941 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java @@ -2998,7 +2998,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder { boolean init;