Skip to content

Fix potential NPE while executing query

a7fd577
Select commit
Loading
Failed to load commit list.
Merged

Fix potential NPE while executing query #17749

Fix potential NPE while executing query
a7fd577
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 22, 2026 in 2m 35s

Annotations

Check warning on line 489 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 89 to 64, Complexity from 16 to 14, Nesting Level from 4 to 2, Number of Variables from 17 to 6.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ5O9mTrCmNIQl9Zbph0&open=AZ5O9mTrCmNIQl9Zbph0&pullRequest=17749

Check warning on line 255 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 95 to 64, Complexity from 19 to 14, Nesting Level from 5 to 2, Number of Variables from 30 to 6.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ5O9mTrCmNIQl9Zbphz&open=AZ5O9mTrCmNIQl9Zbphz&pullRequest=17749

Check failure on line 112 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ5O9mTrCmNIQl9Zbphy&open=AZ5O9mTrCmNIQl9Zbphy&pullRequest=17749