When no DB connection can be established an error is reported but the code simply continues, so another error occurs unexpectedly when preparing a statement on a null connection -> NPE.
Log in to post a comment.