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

NPE in ListCell.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows XP, b34

      As b34 I am receiving the following NPE when calling ListView.getItems().add(). This NPE did not occur in b32. It should be noted that the call to add() is occuring within the run method of a Runnable passed to Platform.runlater().

      java.lang.NullPointerException
      at javafx.scene.control.ListCell$5.invalidated(ListCell.java:131)
      at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:62)
      at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:116)
      at javafx.scene.control.ListCell.setListView(ListCell.java:89)
      at javafx.scene.control.ListCell.impl_updateListView(ListCell.java:252)
      at com.sun.javafx.scene.control.skin.ListViewSkin.updateCellCount(ListViewSkin.java:149)
      at com.sun.javafx.scene.control.skin.ListViewSkin.access$600(ListViewSkin.java:26)
      at com.sun.javafx.scene.control.skin.ListViewSkin$12.onChanged(ListViewSkin.java:119)
      at com.sun.javafx.collections.ObservableListWrapper.callObservers(ObservableListWrapper.java:62)
      at com.sun.javafx.collections.ObservableListWrapper.add(ObservableListWrapper.java:81)
      at com.sun.javafx.collections.ObservableListWrapper.add(ObservableListWrapper.java:74)
      at com.sri.tasklearning.ui.demonstrator.ProcedureDemonstrator$2$1.run(ProcedureDemonstrator.java:88)

            jgiles Jonathan Giles
            kmcintyrejfx Kyle McIntyre (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: