Buggy code:
public class NewItem extends bottomMenuActivity implements View . OnClickListener , RefreshListView . OnLoadListener , RefreshListView . OnRefreshListener , Observer { private static final String TAG = "New<seq2seq4repair_space>Item" ; private String UserName ; private String Email ; private String ApiKey ; private String CreatedAt ; private String UserID ; private Intent intent ; private Context ctx ; private RefreshListView refreshLv ; private GeneralSearch search ; private ArrayList < HashMap < String , String > > paramList ; private TextView goBackToTop ; private long mBackToTopTime ; public int getContentViewLayoutResId ( ) { } protected final void onCreatOverride ( Bundle savedInstanceState ) { Log . i ( NewItem . TAG , "Subclass<seq2seq4repair_space>Activity:<seq2seq4repair_space>onCreate()" ) ; intent = this . getIntent ( ) ; ctx = getApplicationContext ( ) ; UserName = intent . getStringExtra ( "user_name" ) ; Email = intent . getStringExtra ( "user_email" ) ; ApiKey = intent . getStringExtra ( "user_apiKey" ) ; CreatedAt = intent . getStringExtra ( "user_createdAt" ) ; UserID = intent . getStringExtra ( "user_ID" ) ; goBackToTop = ( ( TextView ) ( findViewById ( new_item_frame_title ) ) ) ; goBackToTop . setOnClickListener ( this ) ; refreshLv = ( ( RefreshListView ) ( findViewById ( new_item_listview ) ) ) ; refreshLv . setOnRefreshListener ( this ) ; refreshLv . setOnLoadListener ( this ) ; refreshLv . setOnItemClickListener ( new AdapterView . OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { Log . i ( "See<seq2seq4repair_space>why<seq2seq4repair_space>bug:<seq2seq4repair_space>" , ( position + "" ) ) ; <START_BUG> if ( ( position >= ( paramList . size ( ) ) ) || ( position <= 0 ) ) <END_BUG> return ; Intent intent = new Intent ( ctx , ViewItem . class ) ; intent . putExtra ( KEY_IMAGE , paramList . get ( ( position - 1 ) ) . get ( KEY_IMAGE ) ) ; intent . putExtra ( KEY_ID , paramList . get ( ( position - 1 ) ) . get ( KEY_ID ) ) ; intent . putExtra ( "user_ID" , UserID ) ; intent . putExtra ( "API_key" , ApiKey ) ; startActivity ( intent ) ; } } ) ; isRefreshing = true ; search = new GeneralSearch ( "0" , "" , "" , "" , "" , "" ) ; search . addObserver ( this ) ; search . loadList ( ) ; Log . i ( NewItem . TAG , ( ( ( ( ( ( ( UserName ) + ",<seq2seq4repair_space>" ) + ( Email ) ) + ",<seq2seq4repair_space>" ) + ( ApiKey ) ) + ",<seq2seq4repair_space>" ) + ( CreatedAt ) ) ) ; } @ Override public void onDestroy ( ) { } private Toast goBackTopToast = null ; public void onClick ( View v ) { } private LazyAdapter adapter ; @ Override public void update ( Observable observable , Object data ) { } private ArrayList < HashMap < String , String > > dataToDisplay = new ArrayList < > ( ) ; private int lastLoad = 0 ; private boolean isToEnd = false ; private boolean prepareDataForDisplay ( boolean isRefresh ) { } private void refreshLoadData ( ) { } private void augmentLoadData ( ) { } boolean isRefreshing = false ; @ Override public void onRefresh ( ) { } @ Override public void onLoad ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( position > ( paramList . size ( ) ) ) || ( position <= 0 ) )