Buggy code:
public class WorkActivity extends Activity implements WorkDescriptionFragment . OnFragmentInteractionListener { private ParseQueryAdapter < HirePost > postsQueryAdapter ; private static final int MAX_POST_SEARCH_RESULTS = 20 ; public static String username ; public static String description ; public static String topic ; public static String mobileno ; public static String projectId ; public CustomProgressDialogBox dialog ; ParseQuery < HirePost > q = HirePost . getQuery ( ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_work ) ; dialog = new CustomProgressDialogBox ( this , "Loading<seq2seq4repair_space>data..." ) ; ParseObject . registerSubclass ( HirePost . class ) ; ParseQueryAdapter . QueryFactory < HirePost > factory = new ParseQueryAdapter . QueryFactory < HirePost > ( ) { public ParseQuery < HirePost > create ( ) { ParseQuery < HirePost > query = HirePost . getQuery ( ) ; query . include ( "user" ) ; query . include ( "objectId" ) ; query . whereContains ( "category" , WorkStarted . category ) ; query . orderByDescending ( "createdAt" ) ; query . setLimit ( WorkActivity . MAX_POST_SEARCH_RESULTS ) ; q = query ; return query ; } } ; postsQueryAdapter = new ParseQueryAdapter < HirePost > ( this , factory ) { @ Override public View getItemView ( HirePost post , View view , ViewGroup parent ) { if ( view == null ) { view = View . inflate ( getContext ( ) , post_item , null ) ; } TextView usernameView = ( ( TextView ) ( view . findViewById ( post_user ) ) ) ; TextView topicView = ( ( TextView ) ( view . findViewById ( post_topic ) ) ) ; <START_BUG> TextView bidView = ( ( TextView ) ( view . findViewById ( post_bid ) ) ) ; <END_BUG> TextView enrolView = ( ( TextView ) ( view . findViewById ( post_mobile ) ) ) ; TextView descriptionView = ( ( TextView ) ( view . findViewById ( post_description ) ) ) ; TextView projectId = ( ( TextView ) ( view . findViewById ( post_project_id ) ) ) ; String topictxt = post . getTopic ( ) ; String bidtxt = "" + ( post . getBid ( ) ) ; String enrolltxt = "" + ( post . getMobileNo ( ) ) ; String unametxt = post . getUsername ( ) ; String descriptiontxt = post . getDescription ( ) ; String projectIdtxt = post . getObjectId ( ) ; String nametxt = post . getname ( ) ; topicView . setText ( topictxt ) ; bidView . setText ( bidtxt ) ; enrolView . setText ( enrolltxt ) ; usernameView . setText ( ( nametxt == "" ? unametxt : nametxt ) ) ; descriptionView . setText ( descriptiontxt ) ; projectId . setText ( projectIdtxt ) ; return view ; } } ; postsQueryAdapter . setAutoload ( false ) ; postsQueryAdapter . setPaginationEnabled ( false ) ; ListView postsListView = ( ( ListView ) ( findViewById ( work_listview ) ) ) ; postsListView . setAdapter ( postsQueryAdapter ) ; postsListView . setOnItemClickListener ( new OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { WorkActivity . username = ( ( TextView ) ( view . findViewById ( post_user ) ) ) . getText ( ) . toString ( ) ; WorkActivity . description = ( ( TextView ) ( view . findViewById ( post_description ) ) ) . getText ( ) . toString ( ) ; WorkActivity . topic = ( ( TextView ) ( view . findViewById ( post_topic ) ) ) . getText ( ) . toString ( ) ; WorkActivity . mobileno = ( ( TextView ) ( view . findViewById ( post_mobile ) ) ) . getText ( ) . toString ( ) ; WorkActivity . projectId = ( ( TextView ) ( view . findViewById ( post_project_id ) ) ) . getText ( ) . toString ( ) ; Intent intent = new Intent ( WorkActivity . this , PostActivity . class ) ; startActivity ( intent ) ; } } ) ; postsQueryAdapter . addOnQueryLoadListener ( new ParseQueryAdapter . OnQueryLoadListener < HirePost > ( ) { @ Override public void onLoading ( ) { dialog . setMessage ( "Loading<seq2seq4repair_space>data..." ) ; dialog . show ( ) ; } @ Override public void onLoaded ( List < HirePost > hirePosts , Exception e ) { if ( e == null ) { dialog . dismiss ( ) ; } else { Toast . makeText ( getApplicationContext ( ) , e . toString ( ) , Toast . LENGTH_SHORT ) ; finish ( ) ; } } } ) ; doListQuery ( ) ; } private void doListQuery ( ) { } public void onFragmentInteraction ( Uri uri ) { } No newline ; at end ; of file ; }

Fix:
TextView bidView = ( ( TextView ) ( view . findViewById ( post_budget ) ) ) ;