Avoid NPE when service startup times out.
process may be null if DriverService.start() is overridden, as is done in XpiDriverService.
@@ -189,7 +189,9 @@ protected void waitUntilAvailable() throws MalformedURLException {
URL status = new URL(url.toString() + "/status");
new UrlChecker().waitUntilAvailable(20, SECONDS, status);
} catch (UrlChecker.TimeoutException e) {
+ if (process != null) {
process.checkForError();
+ }
throw new WebDriverException("Timed out waiting for driver server to start.", e);
}
}
