From f36d030ef20e9cf810ae229fa673b61ee6f69271 Mon Sep 17 00:00:00 2001 From: nishantmonu51 Date: Wed, 13 Aug 2014 00:54:31 +0530 Subject: [PATCH] fix NPE while indexing --- .../java/io/druid/segment/incremental/IncrementalIndex.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java b/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java index 7835e0665d9..26985edc024 100644 --- a/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java +++ b/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java @@ -286,11 +286,6 @@ public class IncrementalIndex implements Iterable, Closeable this.dimensionOrder = Maps.newLinkedHashMap(); this.dimensions = new CopyOnWriteArrayList<>(); - int index = 0; - for (String dim : incrementalIndexSchema.getDimensionsSpec().getDimensions()) { - dimensionOrder.put(dim, index++); - dimensions.add(dim); - } // This should really be more generic List spatialDimensions = incrementalIndexSchema.getDimensionsSpec().getSpatialDimensions(); if (!spatialDimensions.isEmpty()) {