Skip to content

Commit

Permalink
Fix NPE in CMSEngine.shutdown()
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Jun 9, 2023
1 parent 0d324ac commit 4298a66
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1371,20 +1371,22 @@ public void shutdownAuthzSubsystem() {
}

public void shutdownAuthSubsystem() {
if (authSubsystem != null) {
authSubsystem.shutdown();
}
if (authSubsystem == null) return;
authSubsystem.shutdown();
}

public void shutdownRequestSubsystem() {
if (requestSubsystem == null) return;
requestSubsystem.shutdown();
}

public void shutdownX500NameSubsystem() {
if (x500NameSubsystem == null) return;
x500NameSubsystem.shutdown();
}

public void shutdownOIDLoaderSubsystem() {
if (oidLoaderSubsystem == null) return;
oidLoaderSubsystem.shutdown();
}

Expand All @@ -1399,17 +1401,20 @@ public void shutdownDBSubsystem() {
}

public void shutdownJSSSubsystem() {
if (jssSubsystem == null) return;
jssSubsystem.shutdown();
}

public void shutdownLogSubsystem() {
if (logSubsystem == null) return;
logSubsystem.shutdown();
}

public void shutdownDatabase() {
}

public void shutdownPluginRegistry() {
if (pluginRegistry == null) return;
pluginRegistry.shutdown();
}

Expand Down

0 comments on commit 4298a66

Please sign in to comment.