NullPointerException using JComboBox.removeAllItems()
843810Jul 29 2004 — edited Jun 13 2006I have created an application that uses two comboboxes, one for the states and one for the cities. The cities will be populated after the state has been chosen. It all works fine until I try to go back and choose another state. When I pick another state a NullPointerException is thrown at the call to JComboBox.removeAllItems(). Can someone enlighten me to the problem and/or a possible workaround? Thanks! -Eric