mangopay2-java-sdk icon indicating copy to clipboard operation
mangopay2-java-sdk copied to clipboard

MangopayHookAPI : Out Of Bound : Hook[]

Open SylvainAssemat opened this issue 8 months ago • 0 comments

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

Image

Hope it will help you to fix this bug

SylvainAssemat avatar Feb 23 '25 13:02 SylvainAssemat