[ http://issues.apache.org/jira/browse/TAPESTRY-1059?page=all ]
Jesse Kuhnert resolved TAPESTRY-1059.
-------------------------------------
Fix Version/s: 4.1.1
Resolution: Fixed
Fixed, thanks.
> JSONResponseBuilder parseParameters method cause NPE.
> -----------------------------------------------------
>
> Key: TAPESTRY-1059
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1059
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.1
> Reporter: Jun Tsai
> Assigned To: Jesse Kuhnert
> Fix For: 4.1.1
>
>
> /**
> * 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]