Fix NullPointerException when priority list is left out

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3600 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-06-21 13:46:54 +00:00
parent c806ffba5f
commit df1cadc4c9
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class VCFCombine extends RodWalker<VCFRecord, VCFWriter> {
private void validateAnnotateUnionArguments(String[] priority) {
Set<RMDTrack> rods = VCFUtils.getRodVCFs(getToolkit());
if ( rods.size() != priority.length ) {
if ( priority == null || rods.size() != priority.length ) {
throw new StingException("A complete priority list must be provided when annotateUnion is provided");
}
if ( priority.length != 2 ) {