Skip to content

Commit

Permalink
dbeaver#22963 Add not null condition
Browse files Browse the repository at this point in the history
  • Loading branch information
longhaseng52 committed Mar 22, 2024
1 parent 68eaa27 commit 2c94499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public CubridTable(
this.setSystem(type.equals("YES"));
}
} else {
ownerName = getDataSource().getContainer().getConnectionConfiguration().getUserName().toUpperCase();
ownerName = getDataSource().getContainer().getConnectionConfiguration().getUserName();
ownerName = ownerName != null ? ownerName.toUpperCase() : "";
collationName = CubridConstants.DEFAULT_COLLATION;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public boolean supportsSynonym() {

@NotNull
public boolean supportsTrigger() {
return this.getDataSource().getContainer().getConnectionConfiguration().getUserName().equals("dba");
return "dba".equals(getDataSource().getContainer().getConnectionConfiguration().getUserName());
}

@NotNull
Expand Down

0 comments on commit 2c94499

Please sign in to comment.