[#2703] SQLDialect.getNameLC() and getNameUC() are not NPE-safe

This commit is contained in:
Lukas Eder 2013-08-19 18:03:13 +02:00
parent 795543245c
commit 6461ce5b87

View File

@ -202,13 +202,13 @@ public enum SQLDialect {
* The name of this dialect as it appears in related package names.
*/
public final String getNameLC() {
return name.toLowerCase();
return name == null ? null : name.toLowerCase();
}
/**
* The name of this dialect as it appears in related enum values.
*/
public final String getNameUC() {
return name.toUpperCase();
return name == null ? null : name.toUpperCase();
}
}