mirror of https://github.com/apache/druid.git
Merge pull request #460 from liquidm/fix_npe_in_groupby
fix a NPE leading to broker 500 response
This commit is contained in:
commit
e94badc917
|
@ -182,7 +182,7 @@ public class GroupByQueryEngine
|
|||
|
||||
final DimensionSelector dimSelector = dims.get(0);
|
||||
final IndexedInts row = dimSelector.getRow();
|
||||
if (row.size() == 0) {
|
||||
if (row == null || row.size() == 0) {
|
||||
ByteBuffer newKey = key.duplicate();
|
||||
newKey.putInt(dimSelector.getValueCardinality());
|
||||
unaggregatedBuffers = updateValues(newKey, dims.subList(1, dims.size()));
|
||||
|
|
Loading…
Reference in New Issue