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);
}
}
It's not working... also... what happens if the array is null?
ReplyDeleteif(newInventoryClassId == null) is taking care for a null array.
DeleteThis worked for me.