NPE in ListCell.java

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      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)

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

              Created:
              Updated:
              Resolved:
              Imported: