Skip to content

Commit

Permalink
HHH-17344 - Fix potential NPE
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
  • Loading branch information
jrenaat committed Oct 30, 2023
1 parent 634f21b commit 17771de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -237,7 +237,7 @@ protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(

@Override
public String rowId(String rowId) {
return rowId.isEmpty() ? "rowid_" : rowId;
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
}

@Override
Expand Down
Expand Up @@ -158,7 +158,7 @@ protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(

@Override
public String rowId(String rowId) {
return rowId.isEmpty() ? "rowid_" : rowId;
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
}

@Override
Expand Down
Expand Up @@ -226,7 +226,7 @@ protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(

@Override
public String rowId(String rowId) {
return rowId.isEmpty() ? "rowid_" : rowId;
return rowId == null || rowId.isEmpty() ? "rowid_" : rowId;
}

@Override
Expand Down

0 comments on commit 17771de

Please sign in to comment.