Skip to content

Commit

Permalink
Check for null before closing driver (tests failed on Windows due to …
Browse files Browse the repository at this point in the history
…NPE here -- Linux was fine)
  • Loading branch information
kinow committed Oct 10, 2024
1 parent 8f8eab6 commit 02a3f87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/org/biouno/unochoice/BaseUiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public void setUp() throws Exception {

@After
public void tearDown() {
driver.quit();
if (driver != null) {
driver.quit();
}
}

protected static By radios(String paramName) {
Expand Down

0 comments on commit 02a3f87

Please sign in to comment.