Skip to content

Commit 502bd73

Browse files
committed
Additional null protection in the toString.
1 parent 19125e3 commit 502bd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dqops/src/main/java/com/dqops/execution/sensors/SensorExecutionRunParameters.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ public String toString() {
592592

593593
// todo: more and better info
594594

595-
if (this.connection.getDuckdb() != null) {
595+
if (this.connection != null && this.connection.getDuckdb() != null) {
596596
FileFormatSpec fileFormatSpec = FileFormatSpecProvider.resolveFileFormat(this.connection.getDuckdb(), this.table);
597597
if (fileFormatSpec != null) {
598598
stringBuilder.append(", file format: ");

0 commit comments

Comments
 (0)