Commit aebfaf78 authored by Bruce Momjian's avatar Bruce Momjian

Attached is a patch that prevents a NullPointerException in the JDBC

driver if the translations files have not been properly installed.  (We
carefully avoided installing the translations file in a controlled
environment here specifically to test for such a bug. :-)

See attached description for more details.

William
--
William Webber                               william@peopleweb.net.au
parent 7f171b59
......@@ -66,9 +66,12 @@ public class PSQLException extends SQLException
try {
bundle = ResourceBundle.getBundle("org.postgresql.errors");
} catch(MissingResourceException e) {
// translation files have not been installed.
message = id;
}
}
if (bundle != null) {
// Now look up a localized message. If one is not found, then use
// the supplied message instead.
message = null;
......@@ -77,6 +80,7 @@ public class PSQLException extends SQLException
} catch(MissingResourceException e) {
message = id;
}
}
// Expand any arguments
if(args!=null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment