Skip to content

Commit 81bd2dd

Browse files
Merge pull request #52 from eramitmittal/patch-1
Update Selenium2Library.java
2 parents a90b612 + 8ea0317 commit 81bd2dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/Selenium2Library.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,12 @@ public static Selenium2Library getLibraryInstance() throws ScriptException {
526526
protected Object[] toStrings(Object[] args) {
527527
Object[] newArgs = new Object[args.length];
528528
for (int i = 0; i < newArgs.length; i++) {
529-
if (args[i].getClass().isArray()) {
529+
if (args[i] == null || args[i].getClass().isArray()) {
530530
newArgs[i] = args[i];
531531
} else {
532532
newArgs[i] = args[i].toString();
533533
}
534534
}
535535
return newArgs;
536536
}
537-
}
537+
}

0 commit comments

Comments
 (0)