File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/org/openqa/grid/internal/cli
test/org/openqa/grid/e2e/misc Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ private IDefaultProvider defaults(String json) {
49
49
map .remove ("custom" );
50
50
return optionName -> {
51
51
String option = optionName .replaceAll ("-" , "" );
52
- return map .containsKey (option ) ? map .get (option ).toString () : null ;
52
+ return map .containsKey (option ) && map . get ( option ) != null ? map .get (option ).toString () : null ;
53
53
};
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ public void canStartHubUsingConfigFile() throws Exception {
250
250
+ " \" servlets\" : [],\n "
251
251
+ " \" withoutServlets\" : [],\n "
252
252
+ " \" custom\" : {},\n "
253
+ + " \" prioritizer\" : null,\n "
253
254
+ " \" capabilityMatcher\" : \" org.openqa.grid.internal.utils.DefaultCapabilityMatcher\" ,\n "
254
255
+ " \" registry\" : \" org.openqa.grid.internal.DefaultGridRegistry\" ,\n "
255
256
+ " \" throwOnCapabilityNotPresent\" : true,\n "
You can’t perform that action at this time.
0 commit comments