Skip to content

Commit

Permalink
ALS-6411: Fix null pointer joining patient masks
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed May 7, 2024
1 parent 174d9ff commit dffe377
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public Mono<VariantMask> getPatientMask(DistributableQuery distributableQuery) {
/** A little bit of a hack for now since the masks don't have sizes at this point and they are needed to merge
*/
public SizedVariantMask appendMask(SizedVariantMask mask1, SizedVariantMask mask2) {
return new SizedVariantMask(VariableVariantMasks.appendMask(mask1.variantMask, mask2.variantMask, mask1.size, mask2.size), mask1.size + mask2.size);
VariantMask variantMask = VariableVariantMasks.appendMask(mask1.variantMask, mask2.variantMask, mask1.size, mask2.size);
return new SizedVariantMask(variantMask != null ? variantMask : VariantMask.emptyInstance(), mask1.size + mask2.size);
}

@Override
Expand Down

0 comments on commit dffe377

Please sign in to comment.