develop: bugfix at VariantClient; it can happen that no annotation is returned for variants raising problems such as 1:645710:A:<INS:ME:ALU>
@@ -95,6 +95,9 @@ public final class VariantClient extends FeatureClient<Variant> {
private QueryResponse<VariantAnnotation> initRequiredAnnotation(QueryResponse<VariantAnnotation> queryResponse) {
for (int i = 0; i < queryResponse.getResponse().size(); i++) {
VariantAnnotation annotation = queryResponse.getResponse().get(i).first();
+ // It can happen that no annotation is returned for variants that could not be parsed and raised problems
+ // e.g. 1:645710:A:<INS:ME:ALU>
+ if (annotation != null) {
// Patch to remove by updating the Evidence avdl model
if (annotation.getTraitAssociation() != null) {
for (EvidenceEntry evidenceEntry : annotation.getTraitAssociation()) {
@@ -158,6 +161,7 @@ public final class VariantClient extends FeatureClient<Variant> {
}
}
}
+ }
return queryResponse;
}
}
