Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-447

TextInput Component's selection methods throw NPE when textNode property is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      Windows XP, Java 1.6.0_17

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              guretzki Thomas Guretzki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified