src/hg/encode/encodeValidate/doEncodeValidate.pl 1.192

1.192 2009/09/03 22:20:55 tdreszer
Protection from when no validationSettings have been provided
Index: src/hg/encode/encodeValidate/doEncodeValidate.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/encodeValidate/doEncodeValidate.pl,v
retrieving revision 1.191
retrieving revision 1.192
diff -b -B -U 4 -r1.191 -r1.192
--- src/hg/encode/encodeValidate/doEncodeValidate.pl	3 Sep 2009 18:24:34 -0000	1.191
+++ src/hg/encode/encodeValidate/doEncodeValidate.pl	3 Sep 2009 22:20:55 -0000	1.192
@@ -1094,8 +1094,9 @@
     my ($type, $fileType, $genome ) = @_;
     my $chrom=1;
     my $align=1;
 
+    if($daf->{validationSettings}) {
     my @set = split('\;', $daf->{validationSettings});
     if($type eq "validateFiles") {
         my $paramList = "";
         for my $setting (@set) {
@@ -1137,8 +1138,9 @@
                 return 1;
             }
         }
     }
+    }
     return 0;
 }
 
 ############################################################################