I am using RecordMapperProvider to convert my join query jooq record to POJO.
Convert.convert(record.getValue("customer_id"), Integer.class);
....
and lot of other fields, As I want to configure it for all the column fields, but for this query I am not fetching it and it throws ArrayIndexOutOfBoundsException: -1
My question is, instead of throwing the exception why don't it just return null ? So that I could just configure it and fetch data whenever I want.