When evaluating JEXL expressions, on't blow up if the eval VC is null
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5085 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
22e599ec76
commit
a9d0772516
|
|
@ -461,6 +461,7 @@ public class NewVariantEvalWalker extends RodWalker<Integer, Integer> implements
|
|||
* @param trackNames the list of track names to process
|
||||
* @param sampleNames the list of samples to include
|
||||
* @param allowableTypes a set of allowable variation types
|
||||
* @param byFilter if false, only accept PASSing VariantContexts. Otherwise, accept both PASSing and filtered sites
|
||||
* @return a mapping of track names to a list of VariantContext objects
|
||||
*/
|
||||
private HashMap<String, HashMap<String, VariantContext>> bindVariantContexts(RefMetaDataTracker tracker, ReferenceContext ref, Set<String> trackNames, Set<String> sampleNames, EnumSet<VariantContext.Type> allowableTypes, boolean byFilter) {
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@ public class JexlExpression extends VariantStratifier implements StandardStratif
|
|||
relevantStates.add("none");
|
||||
|
||||
for ( VariantContextUtils.JexlVCMatchExp jexlExpression : jexlExpressions ) {
|
||||
System.out.println(jexlExpression.name + " " + jexlExpression.exp.getExpression());
|
||||
if (VariantContextUtils.match(eval, jexlExpression)) {
|
||||
if (eval != null && VariantContextUtils.match(eval, jexlExpression)) {
|
||||
relevantStates.add(jexlExpression.name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue