Skip to content

Commit

Permalink
dbeaver/pro#3336 Web node info fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Sep 18, 2024
1 parent 04941e0 commit 94a5d7f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public String getPlainName() { // for renaming node

@Property
public String getProjectId() {
DBPProject ownerProject = node.getOwnerProject();
return ownerProject == null ? null : ownerProject.getId();
if (node instanceof DBNRoot) {
return null;
}
return node.getOwnerProject().getId();
}

@Property
Expand Down

0 comments on commit 94a5d7f

Please sign in to comment.