Buggy code:
public class CliClient extends CliUserHelp { public enum Function { BYTES ( BytesType . instance ) , INTEGER ( IntegerType . instance ) , LONG ( LongType . instance ) , LEXICALUUID ( LexicalUUIDType . instance ) , TIMEUUID ( TimeUUIDType . instance ) , UTF8 ( UTF8Type . instance ) , ASCII ( AsciiType . instance ) ; private AbstractType validator ; Function ( AbstractType validator ) { } public AbstractType getValidator ( ) { } public static String getFunctionNames ( ) { } } private enum AddKeyspaceArgument { REPLICATION_FACTOR , PLACEMENT_STRATEGY , STRATEGY_OPTIONS ; } private static final String DEFAULT_PLACEMENT_STRATEGY = "org.apache.cassandra.locator.SimpleStrategy" ; private Client thriftClient = null ; private CliSessionState sessionState = null ; private String keySpace = null ; private String username = null ; private Map < String , KsDef > keyspacesMap = new HashMap < String , KsDef > ( ) ; private Map < String , AbstractType > cfKeysComparators ; public CliClient ( CliSessionState cliSessionState , Cassandra . Client thriftClient ) { } public void executeCLIStatement ( String statement ) { } private void cleanupAndExit ( ) { } public KsDef getKSMetaData ( String keyspace ) throws InvalidRequestException , NotFoundException , TException { } private void executeCount ( Tree statement ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } private void executeDelete ( Tree statement ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } private void doSlice ( String keyspace , ByteBuffer key , String columnFamily , byte [ ] superColumnName ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private AbstractType getFormatTypeForColumn ( String compareWith ) { } private void executeGet ( Tree statement ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private void executeGetWithConditions ( Tree statement ) { if ( ( ! ( CliMain . isConnected ( ) ) ) || ( ! ( hasKeySpace ( ) ) ) ) return ; IndexClause clause = new IndexClause ( ) ; <START_BUG> String columnFamily = statement . getChild ( 0 ) . getText ( ) ; <END_BUG> Tree conditions = statement . getChild ( 1 ) ; CfDef columnFamilyDef = getCfDef ( columnFamily ) ; SlicePredicate predicate = new SlicePredicate ( ) ; SliceRange sliceRange = new SliceRange ( ) ; sliceRange . setStart ( new byte [ 0 ] ) . setFinish ( new byte [ 0 ] ) ; predicate . setSlice_range ( sliceRange ) ; for ( int i = 0 ; i < ( conditions . getChildCount ( ) ) ; i ++ ) { Tree condition = conditions . getChild ( i ) ; String operator = condition . getChild ( 0 ) . getText ( ) ; String columnNameString = CliUtils . unescapeSQLString ( condition . getChild ( 1 ) . getText ( ) ) ; Tree valueTree = condition . getChild ( 2 ) ; try { ByteBuffer value ; ByteBuffer columnName = columnNameAsBytes ( columnNameString , columnFamily ) ; if ( ( valueTree . getType ( ) ) == ( CliParser . FUNCTION_CALL ) ) { value = convertValueByFunction ( valueTree , columnFamilyDef , columnName ) ; } else { String valueString = CliUtils . unescapeSQLString ( valueTree . getText ( ) ) ; value = columnValueAsBytes ( columnName , columnFamily , valueString ) ; } IndexOperator idxOperator = CliUtils . getIndexOperator ( operator ) ; clause . addToExpressions ( new IndexExpression ( columnName , idxOperator , value ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e . getMessage ( ) ) ; } } List < KeySlice > slices ; clause . setStart_key ( new byte [ ] { } ) ; if ( ( statement . getChildCount ( ) ) == 3 ) { Tree limitNode = statement . getChild ( 2 ) ; int limitValue = Integer . valueOf ( limitNode . getChild ( 0 ) . getText ( ) ) ; if ( limitValue == 0 ) { throw new IllegalArgumentException ( "LIMIT<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>greater<seq2seq4repair_space>than<seq2seq4repair_space>zero." ) ; } clause . setCount ( limitValue ) ; } try { ColumnParent parent = new ColumnParent ( columnFamily ) ; slices = thriftClient . get_indexed_slices ( parent , clause , predicate , ONE ) ; printSliceList ( columnFamilyDef , slices ) ; } catch ( InvalidRequestException e ) { throw new RuntimeException ( e . getWhy ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e . getMessage ( ) ) ; } } private void executeSet ( Tree statement ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , TimedOutException , UnavailableException , TException { } private void executeShowClusterName ( ) throws TException { } private void executeAddKeySpace ( Tree statement ) { } private void executeAddColumnFamily ( Tree statement ) { } private void executeUpdateKeySpace ( Tree statement ) { } private void executeUpdateColumnFamily ( Tree statement ) { } private KsDef updateKsDefAttributes ( Tree statement , KsDef ksDefToUpdate ) { } private CfDef updateCfDefAttributes ( Tree statement , CfDef cfDefToUpdate ) { } private void executeDelKeySpace ( Tree statement ) throws InvalidRequestException , NotFoundException , TException { } private void executeDelColumnFamily ( Tree statement ) throws InvalidRequestException , NotFoundException , TException { } private void executeList ( Tree statement ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private void executeTruncate ( String columnFamily ) { } private void executeAssumeStatement ( Tree statement ) { } private void executeShowVersion ( ) throws TException { } private void executeShowKeySpaces ( ) throws InvalidRequestException , TException { } private boolean hasKeySpace ( ) { } public String getKeySpace ( ) { } public void setKeySpace ( String keySpace ) throws InvalidRequestException , NotFoundException , TException { } public String getUsername ( ) { } public void setUsername ( String username ) { }

Fix:
String columnFamily = CliCompiler . getColumnFamily ( statement , keyspacesMap . get ( keySpace ) . cf_defs ) ;