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