Skip to content

Commit 7f48681

Browse files
authored
Merge pull request #558 from alex268/master
Fixed NPE in DataQueryResults::getQueryStats
2 parents 3fd06dd + 2fdc45b commit 7f48681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table/src/main/java/tech/ydb/table/query/DataQueryResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public boolean isEmpty() {
102102
}
103103

104104
public QueryStats getQueryStats() {
105-
return new QueryStats(queryStats);
105+
return queryStats == null ? null : new QueryStats(queryStats);
106106
}
107107

108108
public YdbQueryStats.QueryStats getRawQueryStats() {

0 commit comments

Comments
 (0)