Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6cf8d7d7
authored
Mar 01, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
处理一个可能空指针的异常
1 parent
25c5f0d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
6cf8d7d
...
@@ -137,6 +137,9 @@ public class PersonService {
...
@@ -137,6 +137,9 @@ public class PersonService {
public
BulkResponse
addPerson
(
String
poolId
,
List
<
Person
>
personPool
)
throws
IOException
{
public
BulkResponse
addPerson
(
String
poolId
,
List
<
Person
>
personPool
)
throws
IOException
{
BulkRequest
bulkRequest
=
new
BulkRequest
(
poolId
);
BulkRequest
bulkRequest
=
new
BulkRequest
(
poolId
);
for
(
Person
person
:
personPool
)
{
for
(
Person
person
:
personPool
)
{
if
(
person
==
null
)
{
continue
;
}
Integer
age
=
person
.
getAge
();
Integer
age
=
person
.
getAge
();
String
gender
=
person
.
getGender
();
String
gender
=
person
.
getGender
();
String
personId
=
person
.
getPersonId
();
String
personId
=
person
.
getPersonId
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment