Description
/**
- Grabs the incoming parameters needed for json responses, most notable the
- {@link ServiceConstants#UPDATE_PARTS}
parameter.
- @param cycle
- The request cycle to parse from
*/
protected void parseParameters(IRequestCycle cycle) { Object[] updateParts = cycle .getParameters(ServiceConstants.UPDATE_PARTS); for(int i = 0; i < updateParts.length; i++) _parts.add(updateParts[i].toString()); }
if my update components is empty or null. it will throw NPE.
I think should be:
Object[] updateParts = cycle
.getParameters(ServiceConstants.UPDATE_PARTS);
if(updateParts != null)