HHH-17344 - Fix potential NPE
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
4880e736c4
commit
47cd06c6db
|
@ -237,7 +237,7 @@ public class DB2zLegacyDialect extends DB2LegacyDialect {
|
|||
|
||||
@Override
|
||||
public String rowId(String rowId) {
|
||||
return rowId.isEmpty() ? "rowid_" : rowId;
|
||||
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -158,7 +158,7 @@ public class DB2iDialect extends DB2Dialect {
|
|||
|
||||
@Override
|
||||
public String rowId(String rowId) {
|
||||
return rowId.isEmpty() ? "rowid_" : rowId;
|
||||
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -226,7 +226,7 @@ public class DB2zDialect extends DB2Dialect {
|
|||
|
||||
@Override
|
||||
public String rowId(String rowId) {
|
||||
return rowId.isEmpty() ? "rowid_" : rowId;
|
||||
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue