HHH-17344 - Fix potential NPE

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-10-27 22:29:05 +02:00 committed by Marco Belladelli
parent 4880e736c4
commit 47cd06c6db
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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