Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129015

ListCell Item not updated when ListView items is set to null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
      None

      Description

      The following test fails:

          @Before public void setup() {
              cell = new ListCell<String>();
              model = FXCollections.observableArrayList("Apples", "Oranges", "Pears");
              list = new ListView<String>(model);
          }

          @Test public void replaceItemsWithANull() {
              cell.updateIndex(0);
              cell.updateListView(list);
              list.setItems(null);
              assertNull(cell.getItem());
          }

        Attachments

          Activity

            People

            Assignee:
            rbair Richard Bair (Inactive)
            Reporter:
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: