Skip to content

Commit

Permalink
fix paramName is null, for issue #1409
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Apr 29, 2023
1 parent 28145c8 commit 7072151
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ protected <T> ObjectReader<T> createObjectReaderWithCreator(
}
});

if (fieldName == null || fieldName.isEmpty()) {
fieldName = "arg" + i;
}

Type paramType = parameter.getParameterizedType();
ObjectReader initReader = getInitReader(provider, paramType, paramClass, fieldInfo);
FieldReader fieldReaderParam = createFieldReaderParam(
Expand Down

0 comments on commit 7072151

Please sign in to comment.