mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug6172: added missing null check in WindowManager.closeAllWindows()
This commit is contained in:
+4
-2
@@ -143,8 +143,10 @@ public class WindowManager {
|
||||
|
||||
public void closeAllWindows() {
|
||||
forEachOpenedWindow(WebDriverWindow::close);
|
||||
driver.quit();
|
||||
driver = null;
|
||||
if (driver != null) {
|
||||
driver.quit();
|
||||
driver = null;
|
||||
}
|
||||
}
|
||||
|
||||
private class ManagedWebDriverWindow extends WebDriverWindow {
|
||||
|
||||
Reference in New Issue
Block a user