[#2703] SQLDialect.getNameLC() and getNameUC() are not NPE-safe
This commit is contained in:
parent
795543245c
commit
6461ce5b87
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user