Buggy code:
public class UltraHighlightWordsActivity extends BaseFragment { private ListView listView ; private TextFieldCell highlightWordField ; private int colorValue ; private int highlightWordRow ; private int dividerRow ; private int colorRow ; private int helpRow ; private int rowCount = 0 ; private static final int done_button = 1 ; @ Override public boolean onFragmentCreate ( ) { } @ Override <START_BUG> public View createView ( LayoutInflater inflater , ViewGroup container ) { <END_BUG> if ( ( fragmentView ) == null ) { colorValue = ApplicationLoader . WORDS_HIGHLIGHT_COLOR ; actionBar . setBackButtonImage ( ic_ab_back ) ; actionBar . setAllowOverlayTitle ( true ) ; actionBar . setTitle ( LocaleController . getString ( "HighlightWords" , HighlightWords ) ) ; actionBar . setActionBarMenuOnItemClick ( new ActionBar . ActionBarMenuOnItemClick ( ) { @ Override public void onItemClick ( int id ) { if ( id == ( - 1 ) ) { finishFragment ( ) ; } else if ( id == ( UltraHighlightWordsActivity . done_button ) ) { saveHighlightWords ( ) ; } } } ) ; ActionBarMenu menu = actionBar . createMenu ( ) ; menu . addItemWithWidth ( UltraHighlightWordsActivity . done_button , ic_done , AndroidUtilities . dp ( 56 ) ) ; highlightWordField = new TextFieldCell ( getParentActivity ( ) ) ; highlightWordField . setFieldTitleAndHint ( null , LocaleController . getString ( "WordsToHighlight" , WordsToHighlight ) , AndroidUtilities . dp ( 5 ) , false ) ; highlightWordField . setFieldText ( WORDS_HIGHLIGHT ) ; highlightWordField . setBackgroundColor ( - 1 ) ; fragmentView = new FrameLayout ( getParentActivity ( ) ) ; FrameLayout frameLayout = ( ( FrameLayout ) ( fragmentView ) ) ; listView = new ListView ( getParentActivity ( ) ) ; listView . setDivider ( null ) ; listView . setDividerHeight ( 0 ) ; listView . setVerticalScrollBarEnabled ( false ) ; frameLayout . addView ( listView ) ; FrameLayout . LayoutParams layoutParams = ( ( FrameLayout . LayoutParams ) ( listView . getLayoutParams ( ) ) ) ; layoutParams . width = LayoutParams . MATCH_PARENT ; layoutParams . height = LayoutParams . MATCH_PARENT ; layoutParams . gravity = Gravity . TOP ; listView . setLayoutParams ( layoutParams ) ; listView . setAdapter ( new UltraHighlightWordsActivity . ListAdapter ( getParentActivity ( ) ) ) ; listView . setOnItemClickListener ( new AdapterView . OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > adapterView , View view , final int i , long l ) { if ( i == ( colorRow ) ) { if ( ( getParentActivity ( ) ) == null ) { return ; } LayoutInflater li = ( ( LayoutInflater ) ( getParentActivity ( ) . getSystemService ( LAYOUT_INFLATER_SERVICE ) ) ) ; view = li . inflate ( settings_color_dialog_layout , null , false ) ; final ColorPickerView colorPickerView = ( ( ColorPickerView ) ( view . findViewById ( color_picker ) ) ) ; colorPickerView . setOldCenterColor ( colorValue ) ; AlertDialog . Builder builder = new AlertDialog . Builder ( getParentActivity ( ) ) ; builder . setTitle ( LocaleController . getString ( "HighlightColor" , HighlightColor ) ) ; builder . setView ( view ) ; builder . setPositiveButton ( LocaleController . getString ( "Set" , Set ) , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialogInterface , int which ) { colorValue = colorPickerView . getColor ( ) ; listView . invalidateViews ( ) ; } } ) ; builder . setNeutralButton ( LocaleController . getString ( "Cancel" , Cancel ) , null ) ; showAlertDialog ( builder ) ; } } } ) ; } else { ViewGroup parent = ( ( ViewGroup ) ( fragmentView . getParent ( ) ) ) ; if ( parent != null ) { parent . removeView ( fragmentView ) ; } } return fragmentView ; } private class ListAdapter extends BaseFragmentAdapter { private Context mContext ; public ListAdapter ( Context context ) { } @ Override public boolean areAllItemsEnabled ( ) { } @ Override public boolean isEnabled ( int i ) { } @ Override public int getCount ( ) { } @ Override public Object getItem ( int i ) { } @ Override public long getItemId ( int i ) { } @ Override public boolean hasStableIds ( ) { } @ Override public View getView ( int i , View view , ViewGroup viewGroup ) { } @ Override public int getItemViewType ( int i ) { } @ Override public int getViewTypeCount ( ) { } @ Override public boolean isEmpty ( ) { } } @ Override public void onResume ( ) { } @ Override public void onOpenAnimationEnd ( ) { } private void saveHighlightWords ( ) { } }

Fix:
public View createView ( LayoutInflater inflater ) {