Summary: | JDBCRealm.open() throws NullPointerException if the specified driver doesn't handle the specified JDBC URL | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Owen Jacobson <owen.jacobson> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | default | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Check returned connection for null in JDBCRealm.open() |
Description
Owen Jacobson
2008-11-25 23:25:56 UTC
Thanks for the patch. I have applied a variation to trunk and will propose it for 6.0.x The changes I made were: - test dbConnection for null rather than driver (which is always non-null) - use the StringManager to provide i18n for the exception message Thanks for catching the typo in the patch! Clearly, I fat-finger a lot of things. I18n is also a nice touch. This has been fixed in 6.0.x and will be included in 6.0.19 onwards. |