Skip to content

Commit

Permalink
Check whether titheInputs is null or not
Browse files Browse the repository at this point in the history
  • Loading branch information
getwithashish committed Sep 9, 2023
1 parent f651cd8 commit 74b63e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PersonEntity createOnePerson(PersonMutationInput personMutationInput) {

List<TitheMutationInput> titheInputs = personMutationInput.getTithes();
List<TitheEntity> tithes = new ArrayList<>();
if (titheInputs.size()!=0) {
if (titheInputs!=null && titheInputs.size()!=0) {
tithes = titheQueryService.buildTitheEntities(person, titheInputs);
}
person.setTithes(tithes);
Expand Down

0 comments on commit 74b63e4

Please sign in to comment.