diff --git a/core/src/main/java/me/prettyprint/cassandra/service/HColumnFamilyImpl.java b/core/src/main/java/me/prettyprint/cassandra/service/HColumnFamilyImpl.java index 1f8b94c01..69739ed66 100644 --- a/core/src/main/java/me/prettyprint/cassandra/service/HColumnFamilyImpl.java +++ b/core/src/main/java/me/prettyprint/cassandra/service/HColumnFamilyImpl.java @@ -303,7 +303,7 @@ public Column execute(Cassandra.Client cassandra) throws HectorException { queryLogger.debug("---------\nColumnFamily: {} slicePredicate: {}", columnFamilyName, activeSlicePredicate.toString()); } - K key = _keys.iterator().next(); + K key = _keys.get(0); List cosclist = cassandra.get_slice(keySerializer.toByteBuffer(key), columnParent, activeSlicePredicate.toThrift(), ThriftConverter.consistencyLevel(consistencyLevelPolicy.get(operationType)));