Trivial protection for null value

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1918 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2009-10-27 21:52:52 +00:00
parent be333da9c0
commit 186a8dd698
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ public class FastaReferenceWalker extends RefWalker<Pair<GenomeLoc, String>, Gen
}
public GenomeLoc reduce(Pair<GenomeLoc, String> value, GenomeLoc sum) {
if ( value == null )
return sum;
// if there is no interval to the left, then this is the first one
if ( sum == null ) {
sum = value.first;