From e6130e0fdcdf9e48621698a22a2b1059ddac4a3e Mon Sep 17 00:00:00 2001 From: Joshua Schumacher Date: Mon, 2 Mar 2015 12:41:59 -0800 Subject: [PATCH] Added null check for the pagingSpec on a Select Query. --- .../src/main/java/io/druid/query/select/SelectQuery.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/processing/src/main/java/io/druid/query/select/SelectQuery.java b/processing/src/main/java/io/druid/query/select/SelectQuery.java index e2692ff0de4..ff21a9b5821 100644 --- a/processing/src/main/java/io/druid/query/select/SelectQuery.java +++ b/processing/src/main/java/io/druid/query/select/SelectQuery.java @@ -17,6 +17,7 @@ package io.druid.query.select; +import com.google.common.base.Preconditions; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -60,6 +61,8 @@ public class SelectQuery extends BaseQuery> this.dimensions = dimensions; this.metrics = metrics; this.pagingSpec = pagingSpec; + + Preconditions.checkNotNull(pagingSpec, "must specify a pagingSpec"); } @Override