diff --git a/java/src/org/broadinstitute/sting/utils/GenomeLoc.java b/java/src/org/broadinstitute/sting/utils/GenomeLoc.java index 521ca0cf2..5e1c7869b 100644 --- a/java/src/org/broadinstitute/sting/utils/GenomeLoc.java +++ b/java/src/org/broadinstitute/sting/utils/GenomeLoc.java @@ -252,7 +252,7 @@ public class GenomeLoc implements Comparable { * @return true if we are past the last location to process */ public static boolean pastFinalLocation(GenomeLoc curr, ArrayList locs) { - if ( locs == null ) + if ( locs.size() == 0 ) return false; else { GenomeLoc last = locs.get(locs.size() - 1); @@ -268,7 +268,7 @@ public class GenomeLoc implements Comparable { * @return true if we should process GenomeLoc curr, otherwise false */ public static boolean inLocations(GenomeLoc curr, ArrayList locs) { - if (locs == null) { + if ( locs.size() == 0 ) { return true; } else { for ( GenomeLoc loc : locs ) {