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

Thomas Guretzki updated PIVOT-447:
----------------------------------

    Component/s:     (was: wtk-terra)
    Description: 
TextInput Component: setSelection(int selectionStart, int selectionLength): 
third <if> should be:
"if (selectionStart < 0
            || selectionStart + selectionLength > (textNode == null ? 0 : 
textNode.getCharacterCount())) "
or something similar


  was:
TextInput Component: setSelection(int selectionStart, int selectionLength): 
third <if> should be:
"if (selectionStart < 0
            || selectionStart + selectionLength > (textNode == null ? 0 : 
textNode.getCharacterCount())) "
or something similar

respectively

TerraTextInputSkin's updateSelection():
definition of local variable <n> (6th line of code) should be
"int n = (textNode == null ? 0 : textNode.getCharacterCount());"


> TextInput Component's selection methods throw NPE when textNode property is 
> null
> --------------------------------------------------------------------------------
>
>                 Key: PIVOT-447
>                 URL: https://issues.apache.org/jira/browse/PIVOT-447
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 1.4, 1.5, 1.5.1, 2.0, 2.1, 3.0
>         Environment: Windows XP, Java 1.6.0_17
>            Reporter: Thomas Guretzki
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> TextInput Component: setSelection(int selectionStart, int selectionLength): 
> third <if> should be:
> "if (selectionStart < 0
>             || selectionStart + selectionLength > (textNode == null ? 0 : 
> textNode.getCharacterCount())) "
> or something similar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to