Skip to content

Commit

Permalink
[Java] Fix potential NPE on DeviceRotation. Fixes #8183
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Apr 9, 2020
1 parent aac9264 commit 92240ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/client/src/org/openqa/selenium/DeviceRotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public DeviceRotation(int x, int y, int z) {
public DeviceRotation(Map<String, Number> map) {
if (map == null || !map.containsKey("x") || !map.containsKey("y") || !map.containsKey("z")) {
throw new IllegalArgumentException(
"Could not initialize DeviceRotation with map given: " + map.toString());
"Could not initialize DeviceRotation with map given: " + String.valueOf(map));
}
this.x = map.get("x").intValue();
this.y = map.get("y").intValue();
Expand Down

0 comments on commit 92240ce

Please sign in to comment.