[ http://issues.apache.org/jira/browse/TAPESTRY-1059?page=comments#action_12427798 ] Jun Tsai commented on TAPESTRY-1059: ------------------------------------
I'm sorry i forget to select affects version. > JSONResponseBuilder parseParameters method cause NPE. > ----------------------------------------------------- > > Key: TAPESTRY-1059 > URL: http://issues.apache.org/jira/browse/TAPESTRY-1059 > Project: Tapestry > Issue Type: Bug > Reporter: Jun Tsai > > /** > * Grabs the incoming parameters needed for json responses, most notable > the > * [EMAIL PROTECTED] 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){ > for(int i = 0; i < updateParts.length; i++) > _parts.add(updateParts[i].toString()); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
