Ulf Dittmer wrote:In which line of code are you getting the exception? Post the entire stack trace.
Have you verified that "con" is not null? You didn't post code that assigns a value to "con".
Ulf Dittmer wrote:So it's probably "con" that's null - that means you probably got a stack trace in line 18; correct?