Merge pull request #2444 from ruansheng8/fix-npe

fix dubbo ServiceParameterResolver NPE
pull/2447/head
Steve Rao 3 years ago committed by GitHub
commit e38900ba55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,7 +112,7 @@ public abstract class AbstractNamedValueServiceParameterResolver
}
}
return index > -1 ? arguments[index] : null;
return index != null && index > -1 ? arguments[index] : null;
}
protected Collection<String> getNames(RestMethodMetadata restMethodMetadata,

Loading…
Cancel
Save