posted 13 years ago
Hi,
I found a really annoying bug today in our application. It was a NullPointerException in a table cell renderer. The visible effect of the bug was that some component was only partially visible or not visible at all and the component didn't refreshed itself(only when I dragged the window off the screen and then back).
I've spent more than an hour by commenting out and back lines from the code to find that the NullPointerException in the cell renderer caused the bug. At this time I was lucky, since I was able to locate the bug, but I still had to spend more than an hour with it. Usually Swing prints stack trace on the console, when an exception occures, but not in this case. Can anybody tell me why? Is there a good solution to find these bugs somehow?
I was searching a little bit, and I've found the following code, but it didn't work for this case.
Thanks in advance