Skip to content

Commit

Permalink
Attempt to fix the build: varargs are never null
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 4, 2017
1 parent 82df130 commit 16c00e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public SendKeysAction(
CharSequence... keysToSend) {
super(keyboard, mouse, locationProvider);

if (keysToSend == null) {
if (keysToSend == null || keysToSend.length == 0) {
throw new IllegalArgumentException("Keys should be a not null CharSequence");
}
this.keysToSend = keysToSend;
Expand Down

0 comments on commit 16c00e1

Please sign in to comment.