Skip to content

Commit

Permalink
ALS-5981: Handle null variant masks in merge0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Feb 28, 2024
1 parent 2d6d3e7 commit eb83a2c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ public VariableVariantMasks append(VariableVariantMasks variantMasks) {
}

public static VariantMask appendMask(VariantMask variantMask1, VariantMask variantMask2, int length1, int length2) {
if (variantMask1 == null) {
variantMask1 = VariantMask.emptyInstance();
}
if (variantMask2 == null) {
variantMask2 = VariantMask.emptyInstance();
}
if (variantMask1 instanceof VariantMaskSparseImpl) {
if (variantMask2 instanceof VariantMaskSparseImpl) {
return append((VariantMaskSparseImpl) variantMask1, (VariantMaskSparseImpl) variantMask2, length1, length2);
Expand Down

0 comments on commit eb83a2c

Please sign in to comment.