Skip to content

Commit

Permalink
errorHandler needs to be instantiated (there's more than one way to c…
Browse files Browse the repository at this point in the history
…onstruct this beast and subclasses don't necessarily call super constructor).

Fixes Issue SeleniumHQ#7415
  • Loading branch information
lukeis committed Jun 2, 2014
1 parent 68b415a commit 6a6995d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class RemoteWebDriver implements WebDriver, JavascriptExecutor,
private static final Logger logger = Logger.getLogger(RemoteWebDriver.class.getName());
private Level level = Level.FINE;

private ErrorHandler errorHandler;
private ErrorHandler errorHandler = new ErrorHandler();
private CommandExecutor executor;
private Capabilities capabilities;
private SessionId sessionId;
Expand All @@ -102,7 +102,6 @@ protected RemoteWebDriver() {

public RemoteWebDriver(CommandExecutor executor, Capabilities desiredCapabilities,
Capabilities requiredCapabilities) {
this.errorHandler = new ErrorHandler();
this.executor = executor;

init(desiredCapabilities, requiredCapabilities);
Expand Down

0 comments on commit 6a6995d

Please sign in to comment.