Buggy code:
public class WeaponBladeListFragment extends WeaponListFragment implements LoaderCallbacks < Cursor > { public static WeaponBladeListFragment newInstance ( String type ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override protected CursorAdapter getDetailAdapter ( ) { } @ Override protected Weapon getDetailWeapon ( int position ) { } @ Override protected Fragment getThisFragment ( ) { } @ Override public void onLoadFinished ( Loader < Cursor > loader , Cursor cursor ) { } private static class WeaponBladeListCursorAdapter extends CursorAdapter { private WeaponCursor mWeaponCursor ; public WeaponBladeListCursorAdapter ( Context context , WeaponCursor cursor ) { } @ Override public View newView ( Context context , Cursor cursor , ViewGroup parent ) { } @ Override public void bindView ( View view , Context context , Cursor cursor ) { Weapon weapon = mWeaponCursor . getWeapon ( ) ; TextView nametv = ( ( TextView ) ( view . findViewById ( name ) ) ) ; TextView attacktv = ( ( TextView ) ( view . findViewById ( attack ) ) ) ; TextView elementtv = ( ( TextView ) ( view . findViewById ( element ) ) ) ; TextView awakentv = ( ( TextView ) ( view . findViewById ( awaken ) ) ) ; TextView slottv = ( ( TextView ) ( view . findViewById ( slot ) ) ) ; TextView affinitytv = ( ( TextView ) ( view . findViewById ( affinity ) ) ) ; TextView defensetv = ( ( TextView ) ( view . findViewById ( defense ) ) ) ; TextView specialtv = ( ( TextView ) ( view . findViewById ( special ) ) ) ; DrawSharpness sharpnesstv = ( ( DrawSharpness ) ( view . findViewById ( sharpness ) ) ) ; sharpnesstv . invalidate ( ) ; elementtv . setCompoundDrawables ( null , null , null , null ) ; specialtv . setCompoundDrawables ( null , null , null , null ) ; specialtv . setText ( null ) ; String name = "" ; int wFinal = weapon . getWFinal ( ) ; if ( wFinal != 0 ) { name = "*" ; } name = name + ( weapon . getName ( ) ) ; String attack = "" + ( weapon . getAttack ( ) ) ; String element = weapon . getElementalAttack ( ) ; String awakenedElement = weapon . getAwakenedElementalAttack ( ) ; String dualElement = null ; String elementText = "" ; String awakenText = "" ; Drawable dEle = null ; Drawable dDualEle = null ; if ( ! ( "" . equals ( awakenedElement ) ) ) { element = awakenedElement ; awakenText = "(" ; } if ( ! ( "" . equals ( element ) ) ) { String [ ] elementData = getElementData ( element ) ; elementText = elementData [ 0 ] ; dEle = getDrawable ( context , elementData [ 1 ] ) ; if ( element . contains ( "," ) ) { String [ ] twoElements = elementText . split ( "," ) ; elementText = twoElements [ 0 ] ; dualElement = twoElements [ 1 ] ; String [ ] dualElementData = getElementData ( dualElement ) ; specialtv . setText ( dualElementData [ 0 ] ) ; dDualEle = getDrawable ( context , dualElementData [ 1 ] ) ; dDualEle = scaleDrawable ( dDualEle , 35 , 35 ) ; specialtv . setCompoundDrawables ( dDualEle , null , null , null ) ; Display display = ( ( android . view . WindowManager ) ( context . getSystemService ( Context . WINDOW_SERVICE ) ) ) . getDefaultDisplay ( ) ; specialtv . setPadding ( ( ( int ) ( ( display . getWidth ( ) ) * 0.16 ) ) , 0 , 0 , 0 ) ; } dEle = scaleDrawable ( dEle , 35 , 35 ) ; elementtv . setCompoundDrawables ( dEle , null , null , null ) ; <START_BUG> if ( "" . equals ( awakenedElement ) ) { <END_BUG> elementText = elementText + ")" ; } } String slot = "" ; switch ( weapon . getNumSlots ( ) ) { case 0 : slot = "---" ; break ; case 1 : slot = "O--" ; break ; case 2 : slot = "OO-" ; break ; case 3 : slot = "OOO" ; break ; default : slot = "error!!" ; break ; } String affinity = "" ; if ( ( weapon . getAffinity ( ) ) != 0 ) { affinity = ( "" + ( weapon . getAffinity ( ) ) ) + "%" ; } String defense = "" ; if ( ( weapon . getDefense ( ) ) != 0 ) { defense = "" + ( weapon . getDefense ( ) ) ; } nametv . setText ( name ) ; nametv . setTypeface ( null , BOLD ) ; attacktv . setText ( attack ) ; elementtv . setText ( elementText ) ; awakentv . setText ( awakenText ) ; slottv . setText ( slot ) ; affinitytv . setText ( affinity ) ; defensetv . setText ( defense ) ; String type = weapon . getWtype ( ) ; if ( type . equals ( "Hunting<seq2seq4repair_space>Horn" ) ) { String special = weapon . getHornNotes ( ) ; specialtv . setLayoutParams ( new LinearLayout . LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT , 0.3F ) ) ; ImageView note1v = ( ( ImageView ) ( view . findViewById ( note1 ) ) ) ; ImageView note2v = ( ( ImageView ) ( view . findViewById ( note2 ) ) ) ; ImageView note3v = ( ( ImageView ) ( view . findViewById ( note3 ) ) ) ; TextView fillerv = ( ( TextView ) ( view . findViewById ( filler ) ) ) ;

Fix:
if ( ! ( "" . equals ( awakenedElement ) ) ) {