github-advanced-security[bot] commented on code in PR #17762:
URL: https://github.com/apache/druid/pull/17762#discussion_r2240523349
##########
server/src/main/java/org/apache/druid/server/compaction/CompactionStatus.java:
##########
@@ -234,17 +235,21 @@
private static List<DimensionSchema> getNonPartitioningDimensions(
@Nullable final List<DimensionSchema> dimensionSchemas,
- @Nullable final PartitionsSpec partitionsSpec
+ @Nullable final PartitionsSpec partitionsSpec,
+ @Nullable final IndexSpec indexSpec
)
{
if (dimensionSchemas == null || !(partitionsSpec instanceof
DimensionRangePartitionsSpec)) {
- return dimensionSchemas;
+ return dimensionSchemas.stream()
Review Comment:
## Dereferenced variable may be null
Variable [dimensionSchemas](1) may be null at this access as suggested by
[this](2) null guard.
Variable [dimensionSchemas](1) may be null at this access because of
[this](3) null argument.
[Show more
details](https://github.com/apache/druid/security/code-scanning/9938)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]