Buggy code:
public class SettingsFragment extends BaseFragment implements DialogDecorator . Callback { public static final String GA_EVENT_SETTINGS_FRAGMENT = "SettingsFragment" ; @ InjectView ( id . settings_build_version_desc ) public TextView buildVersionDescTextView ; @ InjectView ( id . settings_select_language_description ) public TextView languageMenuItemDescription ; @ InjectView ( id . settings_disable_scrobbling_over_mobile_network_switch ) public SwitchCompat isScrobblingOverMobileNetworkDisabledSwitch ; @ InjectView ( id . settings_lastfm_update_nowplaying_switch ) public SwitchCompat isLastfmUpdateNowplayingEnabledSwitch ; @ InjectView ( id . settings_container ) public View settingContainer ; @ InjectView ( id . settings_min_track_duration_in_seconds_desc ) public TextView minDurationInSecondsDescription ; @ InjectView ( id . settings_min_track_duration_in_percents_desc ) public TextView minDurationInPercentsDescription ; @ InjectView ( id . settings_theme_switch ) public SwitchCompat themeSwitch ; @ OnClick ( id . settings_ignored_players ) public void onIgnoredPlayersClick ( ) { } @ OnClick ( id . settings_select_language_menu_item ) public void onSelectLanguageClick ( ) { } @ OnClick ( id . settings_disable_scrobbling_over_mobile_network ) public void onDisableScrobblingOverMobileChanged ( ) { } @ OnCheckedChanged ( id . settings_disable_scrobbling_over_mobile_network_switch ) public void onDisableScrobblingOverMobileChanged ( boolean isChecked ) { } @ OnClick ( id . settings_lastfm_update_nowplaying ) public void onLastfmUpdateNowPlayingChanged ( ) { } @ OnCheckedChanged ( id . settings_lastfm_update_nowplaying_switch ) public void onLastfmUpdateNowPlayingChanged ( boolean isChecked ) { } @ OnClick ( id . settings_theme ) public void onThemeChanged ( ) { } @ OnCheckedChanged ( id . settings_theme_switch ) public void onThemeChanged ( boolean isChecked ) { } @ OnClick ( id . settings_sound_notifications ) public void onSoundNotificationSettingClick ( ) { } @ OnClick ( id . settings_status_bar_notifications ) public void onStatusBarNotificationSettingClick ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { super . onViewCreated ( view , savedInstanceState ) ; ButterKnife . inject ( this , view ) ; if ( WAILSettings . isEnabled ( getActivity ( ) ) ) { setUIStateWailEnabled ( ) ; } else { setUIStateWailDisabled ( ) ; } <START_BUG> String lang = WAILSettings . getLanguageOrNullIfAuto ( getActivity ( ) ) ; <END_BUG> if ( lang == null ) { lang = getResources ( ) . getStringArray ( settings_select_language_languages ) [ 0 ] ; } languageMenuItemDescription . setText ( lang ) ; refreshMinTrackDurationInPercents ( ) ; refreshMinTrackDurationInSeconds ( ) ; isScrobblingOverMobileNetworkDisabledSwitch . setChecked ( WAILSettings . isEnableScrobblingOverMobileNetwork ( getActivity ( ) ) ) ; isLastfmUpdateNowplayingEnabledSwitch . setChecked ( WAILSettings . isLastfmNowplayingUpdateEnabled ( getActivity ( ) ) ) ; themeSwitch . setChecked ( ( ( WAILSettings . getTheme ( getActivity ( ) ) ) == ( Theme . DARK ) ) ) ; try { buildVersionDescTextView . setText ( getActivity ( ) . getPackageManager ( ) . getPackageInfo ( getActivity ( ) . getPackageName ( ) , 0 ) . versionName ) ; } catch ( Exception e ) { buildVersionDescTextView . setText ( "unknown" ) ; EasyTracker . getInstance ( getActivity ( ) ) . send ( MapBuilder . createException ( ( "Can<seq2seq4repair_space>not<seq2seq4repair_space>set<seq2seq4repair_space>build<seq2seq4repair_space>version<seq2seq4repair_space>in<seq2seq4repair_space>settings:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , false ) . build ( ) ) ; } } @ Override public void onStart ( ) { } @ Override public void onStop ( ) { } void setUIStateWailEnabled ( ) { } void setUIStateWailDisabled ( ) { } @ OnClick ( id . settings_min_track_duration_in_percents ) void showMinTrackDurationInPercentsEditDialog ( ) { } @ OnClick ( id . settings_min_track_duration_in_seconds ) void showMinTrackDurationInSecondsEditDialog ( ) { } private void refreshMinTrackDurationInSeconds ( ) { } private void refreshMinTrackDurationInPercents ( ) { } @ OnClick ( id . settings_email_to_developers ) public void emailToTheDeveloper ( ) { } @ Override public void onDismiss ( ) { } }

Fix:
String lang = WAILSettings . getLanguage ( getActivity ( ) ) ;