Skip to content

Commit 92240ce

Browse files
[Java] Fix potential NPE on DeviceRotation. Fixes #8183
1 parent aac9264 commit 92240ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/DeviceRotation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public DeviceRotation(int x, int y, int z) {
5252
public DeviceRotation(Map<String, Number> map) {
5353
if (map == null || !map.containsKey("x") || !map.containsKey("y") || !map.containsKey("z")) {
5454
throw new IllegalArgumentException(
55-
"Could not initialize DeviceRotation with map given: " + map.toString());
55+
"Could not initialize DeviceRotation with map given: " + String.valueOf(map));
5656
}
5757
this.x = map.get("x").intValue();
5858
this.y = map.get("y").intValue();

0 commit comments

Comments
 (0)