Added null check for the pagingSpec on a Select Query.

This commit is contained in:
Joshua Schumacher 2015-03-02 12:41:59 -08:00
parent 437d61ed8f
commit e6130e0fdc
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@
package io.druid.query.select; package io.druid.query.select;
import com.google.common.base.Preconditions;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonTypeName;
@ -60,6 +61,8 @@ public class SelectQuery extends BaseQuery<Result<SelectResultValue>>
this.dimensions = dimensions; this.dimensions = dimensions;
this.metrics = metrics; this.metrics = metrics;
this.pagingSpec = pagingSpec; this.pagingSpec = pagingSpec;
Preconditions.checkNotNull(pagingSpec, "must specify a pagingSpec");
} }
@Override @Override