In my experience, this is a problem introduced in Java 8u20. In Java 8u05 and 8u11, as well as JavaFX 2.x, you can add null to the list of items, and selecting this item behaved as expected. In Java 8u20, you will get java.lang.IndexOutOfBoundsException when you select null .
Benjamin Gale: You will have to use Java 8u20, select an item in ComboBox, and then select null to see the problem.
Currently, the best option is to create a special null object and the corresponding inscription, as already mentioned.
Alternatively, if you can use the ChoiceBox instead, I think you will find that it works the way you want.
Tarje source share