Skip to content

Commit

Permalink
GRAD2-2958 (#283)
Browse files Browse the repository at this point in the history
* GRAD2-2958
User Distribution Run downloaded report files are empty

* GRAD2-2958
User Distribution Run downloaded report files are empty
  • Loading branch information
arybakov-cgi committed Sep 13, 2024
1 parent 6aef499 commit ef5c3b7
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import ca.bc.gov.educ.api.grad.report.util.EducGradReportApiConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down Expand Up @@ -41,13 +42,13 @@ public class StudentSearchRequest implements Serializable {
String activityCode;
String localDownload;

@JsonIgnore
public boolean isEmpty() {
return schoolOfRecords.isEmpty() &&
districts.isEmpty() &&
schoolCategoryCodes.isEmpty() &&
pens.isEmpty() &&
studentIDs.isEmpty() &&
programs.isEmpty();
return (schoolOfRecords == null || schoolOfRecords.isEmpty()) &&
(districts == null || districts.isEmpty()) &&
(schoolCategoryCodes == null || schoolCategoryCodes.isEmpty()) &&
(pens == null || pens.isEmpty()) &&
(studentIDs == null || studentIDs.isEmpty());
}

}

0 comments on commit ef5c3b7

Please sign in to comment.