File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/io/appium/java_client/service/local Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ public final class AppiumDriverLocalService extends DriverService {
54
54
55
55
private static final String URL_MASK = "http://%s:%d/" ;
56
56
private static final Logger LOG = LoggerFactory .getLogger (AppiumDriverLocalService .class );
57
- private static final Pattern LOG_MESSAGE_PATTERN = Pattern .compile ("^(.*)\\ R" );
58
57
private static final Pattern LOGGER_CONTEXT_PATTERN = Pattern .compile ("^(\\ [debug\\ ] )?\\ [(.+?)\\ ]" );
59
58
private static final String APPIUM_SERVICE_SLF4J_LOGGER_PREFIX = "appium.service" ;
60
59
private static final Duration DESTROY_TIMEOUT = Duration .ofSeconds (60 );
@@ -217,7 +216,7 @@ public void stop() {
217
216
* @return The exit code of the process or zero if the process was not running.
218
217
*/
219
218
private int destroyProcess (Duration timeout ) {
220
- if (!process .isRunning ()) {
219
+ if (process == null || !process .isRunning ()) {
221
220
return 0 ;
222
221
}
223
222
You can’t perform that action at this time.
0 commit comments