mangopay2-java-sdk
mangopay2-java-sdk copied to clipboard
MangopayHookAPI : Out Of Bound : Hook[]
Hi
Just to inform that there is an issue when calling this API (check the List resetTimes) ==> ON DEV SANDXBOX only
java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3
@Override
public List<Hook> getAll(Pagination pagination, Sorting sorting) throws Exception {
return this.getList(Hook[].class, Hook.class, "hooks_all", pagination, sorting);
}
List<String> resetTimes = k.getValue();
updatedRateLimits.get(0).setResetTimeSeconds(Long.valueOf(resetTimes.get(3)));
On debug , that resetTimes list is indeed of size : 3
Hope it will help you to fix this bug