0

I used a customized JComboBox as a cell editor for my Jtable. My problem is when I choose nothing from the combo box and click other cell, I get a null pointer exception. But when I select something from the combobox and click other cell, I do not get an error.

px06
  • 2,256
  • 1
  • 27
  • 47
rowrow
  • 93
  • 10
  • Possible duplicate of [What is a NullPointerException, and how do I fix it?](http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – px06 Sep 29 '16 at 09:01

1 Answers1

0

solved it. i was creating objects using default constructor which gives me an object with its properties set to null. thus the error on jtable update.

rowrow
  • 93
  • 10