In my packager xml file I have a subfield packager for a field.
The spec defines multiple field for this (say 25 of them) but I only care about the first one. So I really dont want to define more than that one field in my packager.
The problem arises when the request comes in with more than the one field (thats pretty normal).
The GenericSubFieldPackager basically determines the max number of field from the bitmap size and loops through and throws an exception as it sees bit for field 15 is set but the isofield 15 is not defined in the packager and throws an exception.
Could we modify the GenericSubFieldPackager code
Change
if (fld[i] != null) {
to
if (i < fld.length && fld[i] != null) {
to prevent the Array out of bounds exception as fld[15] does not exist as its not defined in my packager xml.