Buggy code:
public class Table { public static class TableMetadata { private static HashMap < String , Table . TableMetadata > tableMetadataMap_ = new HashMap < String , Table . TableMetadata > ( ) ; private static Map < Integer , String > idCfMap_ = new HashMap < Integer , String > ( ) ; public static synchronized Table . TableMetadata instance ( String tableName ) throws IOException { } private Map < String , String > cfTypeMap_ = new HashMap < String , String > ( ) ; private Map < String , Integer > cfIdMap_ = new HashMap < String , Integer > ( ) ; public void add ( String cf , int id ) { } public void add ( String cf , int id , String type ) { } public boolean isEmpty ( ) { } int getColumnFamilyId ( String columnFamily ) { } public static String getColumnFamilyName ( int id ) { } String getColumnFamilyType ( String cfName ) { } Set < String > getColumnFamilies ( ) { } int size ( ) { } boolean isValidColumnFamily ( String cfName ) { } public String toString ( ) { } public static int getColumnFamilyCount ( ) { } } public static class BootstrapCompletionHandler implements IStreamComplete { public void onStreamCompletion ( String host , StreamContextManager . StreamContext streamContext , StreamContextManager . StreamStatus streamStatus ) throws IOException { } } public static class BootStrapInitiateVerbHandler implements IVerbHandler { public void doVerb ( Message message ) { } private Map < String , String > getNewNames ( StreamContextManager [ ] streamContexts ) throws IOException { } private void addStreamContext ( String host , StreamContextManager . StreamContext streamContext , StreamContextManager . StreamStatus streamStatus ) { } } private static Logger logger_ = Logger . getLogger ( Table . class ) ; public static final String recycleBin_ = "RecycleColumnFamily" ; public static final String hints_ = "HintsColumnFamily" ; private static Lock createLock_ = new ReentrantLock ( ) ; private static Map < String , Table > instances_ = new HashMap < String , Table > ( ) ; private String table_ ; private Table . TableMetadata tableMetadata_ ; private Map < String , ColumnFamilyStore > columnFamilyStores_ = new HashMap < String , ColumnFamilyStore > ( ) ; private DBAnalyticsSource dbAnalyticsSource_ ; private SortedSet < String > applicationColumnFamilies_ ; public static Table open ( String table ) throws IOException { } public Set < String > getColumnFamilies ( ) { } Map < String , ColumnFamilyStore > getColumnFamilyStores ( ) { } public ColumnFamilyStore getColumnFamilyStore ( String cfName ) { } String getColumnFamilyType ( String cfName ) { } public String tableStats ( String newLineSeparator , DecimalFormat df ) { } void onStart ( ) throws IOException { } public void forceCleanup ( ) { } public void clearSnapshot ( ) { } public boolean forceCompaction ( List < Range > ranges , EndPoint target , List < String > fileList ) { } public void forceCompaction ( ) { } public List < String > getAllSSTablesOnDisk ( ) { } private Table ( String table ) throws IOException { } String getTableName ( ) { } boolean isApplicationColumnFamily ( String columnFamily ) { } int getNumberOfColumnFamilies ( ) { } int getColumnFamilyId ( String columnFamily ) { } String getColumnFamilyName ( int id ) { } boolean isValidColumnFamily ( String columnFamily ) { } public Row get ( String key ) throws IOException { } public ColumnFamily get ( String key , String cf ) throws IOException { } public Row getRow ( String key , String cf ) throws IOException { } public Row getRow ( String key , String cf , int start , int count ) throws IOException { } public Row getRow ( String key , String cf , String startColumn , String endColumn , int count ) throws IOException { } public Row getRow ( String key , String cf , long sinceTimeStamp ) throws IOException { } public Row getRow ( String key , String cf , List < String > columns ) throws IOException { } public Row getSliceFrom ( String key , String cf , boolean isAscending , int count ) throws IOException { <START_BUG> Row row = new Row ( key ) ; <END_BUG> String [ ] values = RowMutation . getColumnAndColumnFamily ( cf ) ; String cfName = values [ 0 ] ; String startWith = ( ( values . length ) > 1 ) ? values [ 1 ] : "" ; ColumnFamilyStore cfStore = columnFamilyStores_ . get ( cfName ) ; long start1 = System . currentTimeMillis ( ) ; try { ColumnFamily columnFamily = cfStore . getSliceFrom ( key , cfName , startWith , isAscending , count ) ; if ( columnFamily != null ) row . addColumnFamily ( columnFamily ) ; long timeTaken = ( System . currentTimeMillis ( ) ) - start1 ; dbAnalyticsSource_ . updateReadStatistics ( timeTaken ) ; return row ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } catch ( ExecutionException e ) { throw new RuntimeException ( e ) ; } } void apply ( Row row ) throws IOException { } void applyNow ( Row row ) throws IOException { } public void flush ( boolean fRecovery ) throws IOException { } void load ( Row row ) throws IOException { } public SortedSet < String > getApplicationColumnFamilies ( ) { } public List < String > getKeyRange ( Collection < String > columnFamilyNames , final String startWith , final String stopAt , int maxResults ) throws IOException , InterruptedException , ExecutionException { } private List < String > getKeyRangeUnsafe ( final Collection < String > columnFamilyNames , final String startWith , final String stopAt , int maxResults ) throws IOException , InterruptedException , ExecutionException { } }

Fix:
Row row = new Row ( table_ , key ) ;