Skip to content

Commit

Permalink
Fix #11173: 13.0.5 Selenium: DeploymentAdapter is required (#11175)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Dec 23, 2023
1 parent a0f4e35 commit 8067fd1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public void beforeAll(ExtensionContext context) throws Exception {
ConfigProvider configProvider = ConfigProvider.getInstance();

DeploymentAdapter deploymentAdapter = configProvider.getDeploymentAdapter();
deploymentAdapter.startup();
if (deploymentAdapter != null) {
deploymentAdapter.startup();
}

// The following line registers a callback hook when the root test context is shut down
context.getRoot().getStore(ExtensionContext.Namespace.GLOBAL).put(BootstrapExtension.class.getName(), this);
Expand All @@ -54,7 +56,9 @@ public void beforeAll(ExtensionContext context) throws Exception {
@Override
public void close() throws Exception {
DeploymentAdapter deploymentAdapter = ConfigProvider.getInstance().getDeploymentAdapter();
deploymentAdapter.shutdown();
if (deploymentAdapter != null) {
deploymentAdapter.shutdown();
}
}

}

0 comments on commit 8067fd1

Please sign in to comment.