Skip to content

Commit

Permalink
Fix for empty param method
Browse files Browse the repository at this point in the history
  • Loading branch information
keddok committed Feb 29, 2024
1 parent f1f9aa3 commit 9fd9e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/qualys/feign/jaxrs/BeanParamEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void encode(Object object, Type bodyType, RequestTemplate template) throw
template.methodMetadata().indexToExpander(new HashMap<>());

boolean resolved = false;
if (object instanceof Object[] objects) {
if (object instanceof Object[] objects && objects.length > 0) {
for (Object internalObject : objects) {
if (internalObject instanceof EncoderContext ctx) {
if (ctx.values.size() == 1 && ctx.values.get(ctx.values.keySet().iterator().next()) instanceof Map<?,?> map) {
Expand Down

0 comments on commit 9fd9e87

Please sign in to comment.