[ http://issues.apache.org/jira/browse/MYFACES-416?page=all ]
     
Martin Marinschek closed MYFACES-416:
-------------------------------------


> StringIndexOutOfBoundsException in AddResource
> ----------------------------------------------
>
>          Key: MYFACES-416
>          URL: http://issues.apache.org/jira/browse/MYFACES-416
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly Build
>     Reporter: Peter Mahoney
>      Fix For: Nightly Build

>
> The method writeWithFullHeader() in AddResource throws 
> StringIndexOutOfBoundsException: String index out of range: -1  
> on the line:
> writer.write(originalResponse.substring(insertPosition));
> The rest of the method contains checks for insertPosition to be >= 0, 
> therefore the line should be changed to something like:
> writer.write(insertPosition > 0 ? originalResponse.substring(insertPosition) 
> : originalResponse);

-- 
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

Reply via email to