Hi all,
I have created a small
test program that demonstrates the error I am getting when trying to remove previously inserted objects from a JComboBox, for which I override equals()-method:
The program compiles fine, but when running it, I get the NullPointerException, as per stack trace below:
When I remove the overriden equals() method, everything works fine. The
java version I am using is 1.6.0_20. Could somebody explain why overriding equals() causes a NullPointerException?
Thank you in advance.
Kind Regards,
Veroslav