diff --git a/jest-common/src/main/java/io/searchbox/core/search/aggregation/CardinalityAggregation.java b/jest-common/src/main/java/io/searchbox/core/search/aggregation/CardinalityAggregation.java
index <HASH>..<HASH> 100644
--- a/jest-common/src/main/java/io/searchbox/core/search/aggregation/CardinalityAggregation.java
+++ b/jest-common/src/main/java/io/searchbox/core/search/aggregation/CardinalityAggregation.java
@@ -17,7 +17,9 @@ public class CardinalityAggregation extends MetricAggregation {
 
     public CardinalityAggregation(String name, JsonObject cardinalityAggregation) {
         super(name, cardinalityAggregation);
-        cardinality = cardinalityAggregation.get(String.valueOf(VALUE)).getAsLong();
+        if(cardinalityAggregation.has(String.valueOf(VALUE)) && !cardinalityAggregation.get(String.valueOf(VALUE)).isJsonNull()) {
+            cardinality = cardinalityAggregation.get(String.valueOf(VALUE)).getAsLong();
+        }
     }
 
     /**
Making Cardinality Aggregation match comments and SingleValueAggregation