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

ListCell Item not updated when ListView items is set to null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • None

      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());
          }

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

              Created:
              Updated:
              Resolved:
              Imported: