File tree Expand file tree Collapse file tree
com/applitools/imagetester Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55 <groupId >com.applitools.imagetester</groupId >
66 <artifactId >ImageTester</artifactId >
7- <version >3.6.1 </version >
7+ <version >3.6.2 </version >
88 <packaging >jar</packaging >
99 <properties >
1010 <maven .compiler.source>1.8</maven .compiler.source>
Original file line number Diff line number Diff line change 11Manifest-Version : 1.0
22Main-Class : com.applitools.imagetester.ImageTester
3- Implementation-Version : 3.6.1
3+ Implementation-Version : 3.6.2
44
Original file line number Diff line number Diff line change 2626import com .applitools .imagetester .lib .Utils ;
2727
2828public class ImageTester {
29- private static final String cur_ver = "3.6.1 " ;
29+ private static final String cur_ver = "3.6.2 " ;
3030
3131 public static void main (String [] args ) {
3232
Original file line number Diff line number Diff line change @@ -59,8 +59,10 @@ public String name() {
5959
6060 public TestResults runSafe (Eyes eyes ) {
6161 try {
62- for (int i = 0 ; i < conf_ .properties .length ; i ++) {
63- eyes .addProperty (conf_ .properties [i ][0 ], conf_ .properties [i ][1 ]);
62+ if (conf_ .properties != null && conf_ .properties .length > 0 ) {
63+ for (int i = 0 ; i < conf_ .properties .length ; i ++) {
64+ eyes .addProperty (conf_ .properties [i ][0 ], conf_ .properties [i ][1 ]);
65+ }
6466 }
6567 eyes .addProperty (FILE_NAME_PROP , file_ .getName ());
6668 TestResults res = run (eyes );
Original file line number Diff line number Diff line change @@ -244,6 +244,11 @@ public void setAccessibilityGraphicsRegions(String accessibilityGraphicsRegions)
244244 }
245245
246246 public void setProperties (String propArgument ) {
247+
248+ if (propArgument == null || propArgument .isEmpty ()) {
249+ return ;
250+ }
251+
247252 boolean isValidFormat = Arrays .stream (propArgument .split ("\\ |" ))
248253 .allMatch (s -> s .matches ("[^:]+:[^:]+" ));
249254
You can’t perform that action at this time.
0 commit comments