the doc on File.length states it returns 0L if it doesn't exist, added a check to make sure it exists (and length < 1)
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1450 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
cd711d7697
commit
df9133c90b
|
|
@ -324,7 +324,7 @@ public class GenomeLocParser {
|
|||
File inputFile = new File(file_name);
|
||||
|
||||
// sometimes we see an empty file passed as a parameter, if so return an empty list
|
||||
if (inputFile.length() < 1) return new ArrayList<GenomeLoc>();
|
||||
if (inputFile.exists() && inputFile.length() < 1) return new ArrayList<GenomeLoc>();
|
||||
IntervalList il = IntervalList.fromFile(inputFile);
|
||||
|
||||
// iterate through the list of merged intervals and add then as GenomeLocs
|
||||
|
|
|
|||
Loading…
Reference in New Issue