|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>|
|Attachments:||Check returned connection for null in JDBCRealm.open()|
Description Owen Jacobson 2008-11-25 23:25:56 UTC
Comment 1 Mark Thomas 2008-12-28 15:49:35 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
Comment 2 Owen Jacobson 2008-12-28 17:06:48 UTC
Thanks for catching the typo in the patch! Clearly, I fat-finger a lot of things. I18n is also a nice touch.
Comment 3 Mark Thomas 2009-01-14 15:58:50 UTC
This has been fixed in 6.0.x and will be included in 6.0.19 onwards.