public void setInventoryClassId(String[] inventoryClassId) {
this.inventoryClassId = inventoryClassId;
}
In order to solve this issue, we must do the following:
public void setInventoryClassId(String[] newInventoryClassId) {
if(newInventoryClassId == null) {
this.inventoryClassId = new String[0];
} else {
this.inventoryClassId = Arrays.copyOf(newInventoryClassId, newInventoryClassId.length);
}
}