release-4.5.0: bug fixed - CellBaseWSVariantAnnotator no longer raises NPE if the variantList to annotate is either null or empty
@@ -57,6 +57,7 @@ public class CellBaseWSVariantAnnotator implements VariantAnnotator {
}
public void run(List<Variant> variantList) {
+ if (variantList != null && !variantList.isEmpty()) {
logger.debug("Annotator sends {} new variants for annotation. Waiting for the result", variantList.size());
QueryResponse<VariantAnnotation> response;
try {
@@ -83,6 +84,7 @@ public class CellBaseWSVariantAnnotator implements VariantAnnotator {
}
}
}
+ }
private void mergeAnnotation(VariantAnnotation destination, VariantAnnotation origin) {
if (origin != null) {
