fix a NPE leading to broker 500 response

This commit is contained in:
Hagen Rother 2014-04-04 13:04:40 +02:00
parent 8138d96f9d
commit e0e43deaec
1 changed files with 1 additions and 1 deletions

View File

@ -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()));