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:
parent
c806ffba5f
commit
df1cadc4c9
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue