Commit 6cf8d7d7 by xmh

处理一个可能空指针的异常

1 parent 25c5f0d6
......@@ -137,6 +137,9 @@ public class PersonService {
public BulkResponse addPerson(String poolId, List<Person> personPool) throws IOException {
BulkRequest bulkRequest = new BulkRequest(poolId);
for (Person person : personPool) {
if (person == null) {
continue;
}
Integer age = person.getAge();
String gender = person.getGender();
String personId = person.getPersonId();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!