Skip to content

Commit

Permalink
Additional null protection in the toString.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrczarnas committed Feb 18, 2024
1 parent 19125e3 commit 502bd73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public String toString() {

// todo: more and better info

if (this.connection.getDuckdb() != null) {
if (this.connection != null && this.connection.getDuckdb() != null) {
FileFormatSpec fileFormatSpec = FileFormatSpecProvider.resolveFileFormat(this.connection.getDuckdb(), this.table);
if (fileFormatSpec != null) {
stringBuilder.append(", file format: ");
Expand Down

0 comments on commit 502bd73

Please sign in to comment.