Buggy code:
private boolean boundState ; private LayoutInflater inf ; private ArrayList < AwfulServiceConnection . AwfulListAdapter > fragments ; private AwfulPreferences mPrefs ; public AwfulServiceConnection ( ) { } @ Override public void onServiceConnected ( ComponentName cName , IBinder bind ) { } @ Override public void onServiceDisconnected ( ComponentName arg0 ) { } @ Override public void onReceive ( Context context , Intent intent ) { } public void connect ( Context parent ) { } public void disconnect ( Context parent ) { } public void fetchThread ( int id , int page ) { } public void fetchForum ( int id , int page ) { } public void sharedPreferenceChange ( ) { } public class ForumListAdapter extends AwfulServiceConnection . AwfulListAdapter < AwfulForum > { public ForumListAdapter ( int id , AwfulUpdateCallback frag ) { } @ Override public void connected ( ) { } @ Override public void loadPage ( boolean forceRefresh , Bundle extras ) { } public void toggleBookmark ( int id ) { } public void markThreadUnread ( int id ) { } } private static final RotateAnimation mLoadingAnimation = new RotateAnimation ( 0.0F , 360.0F , Animation . RELATIVE_TO_SELF , 0.5F , Animation . RELATIVE_TO_SELF , 0.5F ) ; private static final AlphaAnimation mFailedLoadingAnimation = new AlphaAnimation ( 1.0F , 0.0F ) ; public class ThreadListAdapter extends AwfulServiceConnection . AwfulListAdapter < AwfulThread > { protected boolean lastReadLoaded ; protected boolean threadClosed ; protected boolean pageHasChanged ; private Handler imgHandler = new Handler ( ) ; public ThreadListAdapter ( int id , AwfulUpdateCallback frag ) { } public ThreadListAdapter ( int id , AwfulUpdateCallback frag , int loadPage ) { } @ Override public void connected ( ) { } @ Override public void disconnected ( ) { } public void loadLastReadPage ( ) { } public void loadPage ( boolean forceRefresh , Bundle extras ) { } public boolean getThreadClosed ( ) { } public int getLastReadPost ( ) { } public void goToPage ( int page ) { } public void toggleBookmark ( ) { } public void markLastRead ( String aLastReadUrl ) { } public void markThreadUnread ( ) { } @ Override public View getView ( int ix , View current , ViewGroup parent ) { } private ThumbnailBus . Receiver < ThumbnailMessage > onCache = new ThumbnailBus . Receiver < ThumbnailMessage > ( ) { public void onReceive ( final ThumbnailMessage message ) { } } ; } public class GenericListAdapter extends AwfulServiceConnection . AwfulListAdapter < AwfulPagedItem > { private String mType ; @ Override public void connected ( ) { } @ Override public void disconnected ( ) { } public GenericListAdapter ( String type , int id , AwfulUpdateCallback frag ) { } @ Override protected void loadPage ( boolean forceRefresh , Bundle extras ) { } } public abstract class AwfulListAdapter < T extends AwfulPagedItem > extends BaseAdapter implements SectionIndexer { protected int currentId ; protected int currentPage ; protected T state ; protected DataSetObserver mObserver ; protected AwfulUpdateCallback mCallback ; protected AwfulPageCount pageCount ; public AwfulListAdapter ( int id ) { } public void connected ( ) { } public void disconnected ( ) { } public void dataUpdate ( boolean status , int page , Bundle extras ) { } public ArrayList < ? extends AwfulDisplayItem > getChildren ( ) { } public JSONArray getSerializedChildren ( ) { } @ Override public int getCount ( ) { } public int getChildCount ( ) { } @ Override public Object getItem ( int ix ) { } @ Override public long getItemId ( int ix ) { } protected boolean isPageCount ( int ix ) { } @ Override public int getItemViewType ( int ix ) { } public DISPLAY_TYPE getItemType ( int ix ) { } @ Override public View getView ( int ix , View current , ViewGroup parent ) { } @ Override public int getViewTypeCount ( ) { } @ Override public boolean hasStableIds ( ) { } @ Override public boolean isEmpty ( ) { } @ Override public void registerDataSetObserver ( DataSetObserver ob ) { } @ Override public void unregisterDataSetObserver ( DataSetObserver observer ) { } @ Override public boolean areAllItemsEnabled ( ) { } @ Override public boolean isEnabled ( int ix ) { <START_BUG> if ( ( ( state ) == null ) || ( isPageCount ( ix ) ) ) { <END_BUG> return false ; } return state . getChild ( currentPage , ix ) . isEnabled ( ) ; } public String getTitle ( ) { } public void refresh ( ) { } public void goToPage ( int page ) { } public void forceGoToPage ( int page ) { } public void goToPage ( int pageInt , boolean refresh , boolean ignoreMaxBound ) { } protected abstract void loadPage ( boolean forceRefresh , Bundle extras ) { } public int getPage ( ) { } public int getLastPage ( ) { } public AwfulPagedItem getState ( ) { } public int getLastReadPost ( ) { } @ Override public int getPositionForSection ( int section ) { } @ Override public int getSectionForPosition ( int position ) { } @ Override public Object [ ] getSections ( ) { } public void fetchPrivateMessages ( ) { } public void fetchPrivateMessage ( int id ) { } public AwfulMessage getMessage ( int pmId ) { } public void sendPM ( String recipient , int prevMsgId , String subject , String content ) { } public RotateAnimation getRotateAnimation ( ) { } public AlphaAnimation getBlinkingAnimation ( ) { } } public AwfulServiceConnection . ThreadListAdapter createThreadAdapter ( int id , AwfulUpdateCallback frag ) { } public AwfulServiceConnection . ForumListAdapter createForumAdapter ( int id , AwfulUpdateCallback frag ) { } public AwfulServiceConnection . ThreadListAdapter createThreadAdapter ( int threadid , ThreadDisplayFragment display , int page ) { } public AwfulServiceConnection . GenericListAdapter createGenericAdapter ( String type , int id , AwfulUpdateCallback fragment ) { } }

Fix:
if ( ( ( ( state ) == null ) || ( isPageCount ( ix ) ) ) || ( ix >= ( state . getChildrenCount ( currentPage ) ) ) ) {