src/hg/utils/automation/Encode.pm 1.53

1.53 2009/12/15 18:49:34 tdreszer
Plug up a runtime warning warning
Index: src/hg/utils/automation/Encode.pm
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/Encode.pm,v
retrieving revision 1.52
retrieving revision 1.53
diff -b -B -U 4 -r1.52 -r1.53
--- src/hg/utils/automation/Encode.pm	4 Dec 2009 23:34:37 -0000	1.52
+++ src/hg/utils/automation/Encode.pm	15 Dec 2009 18:49:34 -0000	1.53
@@ -201,10 +201,12 @@
     my %terms = ();
     my %termRa = RAFile::readRaFile("$configPath/$vocabConfigFile", "term");
     foreach my $term (keys %termRa) {
         my $type = $termRa{$term}->{type};
+        if(defined($type)) {
         $terms{$type}->{$term} = $termRa{$term};
     }
+    }
     return %terms;
 }
 
 sub getFields