fix NPE while indexing

This commit is contained in:
nishantmonu51 2014-08-13 00:54:31 +05:30
parent c6712739dc
commit f36d030ef2
1 changed files with 0 additions and 5 deletions

View File

@ -286,11 +286,6 @@ public class IncrementalIndex implements Iterable<Row>, Closeable
this.dimensionOrder = Maps.newLinkedHashMap(); this.dimensionOrder = Maps.newLinkedHashMap();
this.dimensions = new CopyOnWriteArrayList<>(); 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 // This should really be more generic
List<SpatialDimensionSchema> spatialDimensions = incrementalIndexSchema.getDimensionsSpec().getSpatialDimensions(); List<SpatialDimensionSchema> spatialDimensions = incrementalIndexSchema.getDimensionsSpec().getSpatialDimensions();
if (!spatialDimensions.isEmpty()) { if (!spatialDimensions.isEmpty()) {