Buggy code:
public int [ ] getColumnOrder ( ) { } public TableColumn [ ] getColumns ( ) { } TableItem getFocusItem ( ) { } GdkColor getForegroundColor ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } public TableItem getItem ( int index ) { } public TableItem getItem ( Point point ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public TableItem [ ] getItems ( ) { } public boolean getLinesVisible ( ) { } int getPixbufRenderer ( int column ) { } public TableItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public int getSelectionIndex ( ) { } public int [ ] getSelectionIndices ( ) { } public TableColumn getSortColumn ( ) { } public int getSortDirection ( ) { } int getTextRenderer ( int column ) { } public int getTopIndex ( ) { } int gtk_button_press_event ( int widget , int event ) { } int gtk_button_release_event ( int widget , int event ) { } int gtk_changed ( int widget ) { } int gtk_key_press_event ( int widget , int eventPtr ) { } int gtk_motion_notify_event ( int widget , int event ) { } int gtk_row_activated ( int tree , int path , int column ) { } int gtk_toggled ( int renderer , int pathStr ) { } void hideFirstColumn ( ) { } void hookEvents ( ) { } public int indexOf ( TableColumn column ) { } public int indexOf ( TableItem item ) { } public boolean isSelected ( int index ) { } boolean mnemonicHit ( char key ) { } boolean mnemonicMatch ( char key ) { } int paintWindow ( ) { } void recreateRenderers ( ) { } void redrawBackgroundImage ( ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } public void remove ( int index ) { } public void remove ( int start , int end ) { } public void remove ( int [ ] indices ) { } public void removeAll ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } int rendererGetSizeProc ( int cell , int widget , int cell_area , int x_offset , int y_offset , int width , int height ) { } int rendererRenderProc ( int cell , int window , int widget , int background_area , int cell_area , int expose_area , int flags ) { } void resetCustomDraw ( ) { } public void select ( int index ) { } public void select ( int start , int end ) { } public void select ( int [ ] indices ) { } public void selectAll ( ) { } void selectFocusIndex ( int index ) { } void setBackgroundColor ( GdkColor color ) { } void setBackgroundPixmap ( int pixmap ) { } int setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } public void setColumnOrder ( int [ ] order ) { } void setFontDescription ( int font ) { } void setForegroundColor ( GdkColor color ) { } public void setHeaderVisible ( boolean show ) { } public void setItemCount ( int count ) { checkWidget ( ) ; count = Math . max ( 0 , count ) ; if ( count == ( itemCount ) ) return ; boolean isVirtual = ( ( style ) & ( SWT . VIRTUAL ) ) != 0 ; if ( ! isVirtual ) setRedraw ( false ) ; remove ( count , ( ( itemCount ) - 1 ) ) ; int length = Math . max ( 4 , ( ( ( count + 3 ) // 4 ) * 4 ) ) ; TableItem [ ] newItems = new TableItem [ length ] ; System . arraycopy ( items , 0 , newItems , 0 , itemCount ) ; items = newItems ; if ( isVirtual ) { int iter = OS . g_malloc ( OS . GtkTreeIter_sizeof ( ) ) ; if ( iter == 0 ) error ( ERROR_NO_HANDLES ) ; for ( int i = itemCount ; i < count ; i ++ ) { OS . gtk_list_store_append ( modelHandle , iter ) ; } OS . g_free ( iter ) ; itemCount = count ; } else { for ( int i = itemCount ; i < count ; i ++ ) { <START_BUG> items [ i ] = new TableItem ( this , SWT . NONE , i , true ) ; <END_BUG> } } if ( ! isVirtual ) setRedraw ( true ) ; } public void setLinesVisible ( boolean show ) { } void setParentBackground ( ) { } void setParentWindow ( int widget ) { } public void setRedraw ( boolean redraw ) { } void setScrollWidth ( int column , TableItem item ) { } public void setSortColumn ( TableColumn column ) { } public void setSortDirection ( int direction ) { } public void setSelection ( int index ) { } public void setSelection ( int start , int end ) { } public void setSelection ( int [ ] indices ) { } public void setSelection ( TableItem item ) { } public void setSelection ( TableItem [ ] items ) { } public void setTopIndex ( int index ) { } public void showColumn ( TableColumn column ) { } boolean showFirstColumn ( ) { } public void showItem ( TableItem item ) { } void showItem ( int iter ) { } public void showSelection ( ) { } int treeSelectionProc ( int model , int path , int iter , int [ ] selection , int length ) { } }

Fix:
new TableItem ( this , SWT . NONE , i , true ) ;