Skip to content

Commit 53814cd

Browse files
fix: Avoid throwing null pointer exception if any of settings is equal to null (#1241)
1 parent f11fe00 commit 53814cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/io/appium/java_client/HasSettings.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ default void setSetting(String setting, Object value) {
6363
default Map<String, Object> getSettings() {
6464
Map.Entry<String, Map<String, ?>> keyValuePair = getSettingsCommand();
6565
Response response = execute(keyValuePair.getKey(), keyValuePair.getValue());
66-
67-
return ImmutableMap.<String, Object>builder()
68-
.putAll(Map.class.cast(response.getValue())).build();
66+
return (Map<String, Object>) response.getValue();
6967
}
7068
}

0 commit comments

Comments
 (0)