[ 
https://issues.apache.org/jira/browse/PIVOT-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noel Grandin resolved PIVOT-683.
--------------------------------

    Resolution: Fixed

Fixed in revision 1081381

> TextAreaSkin throws IndexOutOfBoundsException when the END key is pressed on 
> the final line of a TextArea
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-683
>                 URL: https://issues.apache.org/jira/browse/PIVOT-683
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>         Environment: n/a
>            Reporter: Chris Bartlett
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> TextAreaSkin fails as follows when the END key is pressed on the final line 
> of a TextArea (ie, a line without a linebreak)
> java.lang.IndexOutOfBoundsException
> at org.apache.pivot.wtk.TextArea.getCharacterAt(TextArea.java:870)
> at org.apache.pivot.wtk.skin.TextAreaSkin.keyPressed(TextAreaSkin.java:934)
> at 
> org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:524)
> at org.apache.pivot.wtk.Component.keyPressed(Component.java:2813)
> at 
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1257)
> at java.awt.Component.processEvent(Unknown Source)
> at 
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
> ...
> You can see this by simply pressing END with a freshly created TextArea with 
> no content.
> If you add a second line, END will work on the first line, but will throw on 
> the last one.
> (Using latest code from trunk)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to