fix off by one error

This commit is contained in:
tueem 2024-11-07 11:49:45 +01:00
parent 5689fef866
commit 3d2bca4548
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB

@ -18,7 +18,7 @@ public class ButtonInteractionMethod extends InteractionMethod {
@Override
public Object getParameter(Object parameter, int index) {
Class<?> type = getMethod().getParameterTypes()[index];
Class<?> type = getMethod().getParameterTypes()[index+1];
return wrapper.getComponentContextObject(parameter, type);
}