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:
parent
be333da9c0
commit
186a8dd698
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue