I am very new to programming and Java is the language we are starting with so please bear with me as I enter this forum to extract as much of your knowledge as is morally possible.
I am currently working on a small application using JDBC:ODBC bridge.
All is going fine however, for some reason I get this error message:
"Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException".
now the strangeness of the situation is that I have run the program several times without any problems and I did not change anything!
So why would I all of a sudden receive this message?
I have checked the connection which is fine, I am not to sure where else to look,
for as I mentioned no code was changed apart from adding a "\t" but the application still ran after this.
Rob Spoor wrote:Not until you TellTheDetails. The exception should include a file name and line number where the exception occurs. That's where you need to look.
true true, I should have but there were so many and basically I thought it would have something to do with the connection and was hoping somebody would lead me where to look (because the exceptions listed I could not find anything wrong)
but I have found the problem :
I had this :
And changed to
and it seems to have done the trick, and I thought white space didn't matter.
Thank you for your help, next time I will give more details about the error.