Skip to content

Commit

Permalink
Added null check for webSecurityManagerFactory
Browse files Browse the repository at this point in the history
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
  • Loading branch information
arjantijms committed May 10, 2023
1 parent 7d80fb6 commit 291278b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,14 @@ public WebBundleDescriptor getWebDescriptor() {
// utility method to get web security anager.
// will log warning if the manager is not found in the factory, and
// logNull is true.
// Note: webSecurityManagerFactory can be null the very questionable SOAP code just
// instantiates a RealmAdapter
public WebSecurityManager getWebSecurityManager(boolean logNull) {
if (webSecurityManager == null) {
if (webSecurityManager == null && webSecurityManagerFactory != null) {
synchronized (this) {
webSecurityManager = webSecurityManagerFactory.getManager(contextId);
}

if (webSecurityManager == null && logNull) {
_logger.log(WARNING, "realmAdapter.noWebSecMgr", contextId);
}
Expand Down

0 comments on commit 291278b

Please sign in to comment.