0

java.lang.NullPointerException: Cannot invoke "java.sql.Connection.createStatement()" I got this exception and i don't know how to deal with it I'm a beginner so please I'm asking for you help!

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
amy
  • 13
  • 2
  • 1
    You got another exception when you tried to get the `Connection` and you ignored that. Don't. You don't actually have a `Connection`. – Elliott Frisch Jun 02 '23 at 20:47
  • As asked, this question is a duplicate. If you want more specific help, then please [edit] your question to provide a [mre] demonstrating the problem and the stack trace of the exception. – Slaw Jun 02 '23 at 21:39
  • thank you everyone so muchh, i just fixed it – amy Jun 02 '23 at 21:47

0 Answers0