Skip to content

Commit 16c00e1

Browse files
committed
Attempt to fix the build: varargs are never null
1 parent 82df130 commit 16c00e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/interactions/SendKeysAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public SendKeysAction(
4242
CharSequence... keysToSend) {
4343
super(keyboard, mouse, locationProvider);
4444

45-
if (keysToSend == null) {
45+
if (keysToSend == null || keysToSend.length == 0) {
4646
throw new IllegalArgumentException("Keys should be a not null CharSequence");
4747
}
4848
this.keysToSend = keysToSend;

0 commit comments

Comments
 (0)