Clone
Federico Valeri <fvaleri@localhost>
committed
on 04 Jul 19
Fix NPE at component.bean.MethodInfo.invoke
This happens only for a call with no args that raise an IllegalAccessException,
for example usin… Show more
Fix NPE at component.bean.MethodInfo.invoke

This happens only for a call with no args that raise an IllegalAccessException,

for example using an inner private class in a CamelTest.

In Camel 3 we have the same bug, but it is mitigated by a call to

org.apache.camel.support.ObjectHelper.invokeMethodSafe

which I also included in this fix.

Show less