Minor fix

This commit is contained in:
Mikhail Trofimov 2025-06-30 16:51:55 +03:00
parent e6859c5a8f
commit a3df330f70

View file

@ -26,6 +26,9 @@ public class PersonService {
} }
public Map<Integer, PersonData> findPersonData(List<Integer> fids) { public Map<Integer, PersonData> findPersonData(List<Integer> fids) {
if (fids.isEmpty()) {
return new HashMap<>();
}
Map<Integer, PersonData> personDataMap = new HashMap<>(); Map<Integer, PersonData> personDataMap = new HashMap<>();
Map<Integer, NameData> nameDataMap = findNameData(fids); Map<Integer, NameData> nameDataMap = findNameData(fids);
Map<Integer, PassportData> passortDataMap = findPassportData(fids); Map<Integer, PassportData> passortDataMap = findPassportData(fids);