Skip to content

Commit

Permalink
Fix inverted null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Jan 29, 2024
1 parent 120152f commit 0982462
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public BigInteger getPatientIdsForIntersectionOfVariantSets(Set<Integer> patient
Set<Integer> patientIds = Arrays.asList(
variantService.getPatientIds()).stream().map((String id)->{
return Integer.parseInt(id);}).collect(Collectors.toSet());
if(patientSubset == null) {
if(patientSubset != null) {
// for now, null means there were no phenotypic filters and all patients are eligible
patientsInScope = Sets.intersection(patientIds, patientSubset);
} else {
Expand Down

0 comments on commit 0982462

Please sign in to comment.