orpiske commented on code in PR #21091:
URL: https://github.com/apache/camel/pull/21091#discussion_r2732372324
##########
components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java:
##########
@@ -1098,11 +1114,17 @@ private static void
removeAllSetterOrGetterMethods(List<MethodInfo> methods) {
}
private void removeNonMatchingMethods(List<MethodInfo> methods, String
name) {
+ if (methods == null) {
+ return;
+ }
// method does not match so remove it
methods.removeIf(info -> !matchMethod(info.getMethod(), name));
}
Review Comment:
Thank you - just fixed it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]