title: Returning null value in base adapter class while appending to list view
body: <p>Hello all I am new to android, am trying to display a list of json data in listview my class is extended with SherlockFragment fetched the data succesfully but unable to append the data in a list. for displaying of data I created a class which extending with baseadapter class. i have found that value is returning null at View group</p>
  
  <p>Can any one help in fixing the issue thanks in advance</p>
  
  <pre><code>public class AboutMeFragment extends Fragment { 
  
  ListViewAdapter la;
  String add_users;
  View rootView;
  ArrayList&lt;HashMap&lt;String, String&gt;&gt; contactList;
  static String idStr,getMaxAnsLengthStr,userIdStr,userRankStr,de;
  
  static String getQuestionsStr = "GetQuestion";
  
  ListView list;
  
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      rootView = inflater.inflate(R.layout.fragment_aboutme,
              container, false);
  
      la = new ListViewAdapter(getActivity(), contactList);
  
      list = (ListView)rootView.findViewById(R.id.listView1);
      contactList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
  
      new CheckLoginAboutmen().execute();     
      return rootView;
  }
  
  private class CheckLoginAboutmen extends AsyncTask&lt;Void,Void,Void&gt;{ 
  
      String json;
      String outputData = null;
      JSONArray jsonArray;
      @Override
      protected Void doInBackground(Void... args) {
          // TODO Auto-generated method stub
  
          List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;(1);
  
          //      params.add(new BasicNameValuePair("LoginName", loginStr));
          params.add(new BasicNameValuePair("UserID", "195"));
          ServiceHandler sh = new ServiceHandler();
  
          add_users = getString(R.string.about_me);
          json = sh.makeServiceCall(add_users, ServiceHandler.POST,params);
          Log.d("Create Prediction Request: ", "&gt; " + json);
  
          System.out.println("The returned JSON Value is..."+json);
  
          try{
              jsonArray = new JSONArray(json);
              if(json != null){
                  HashMap&lt;String, String&gt; contact = null;
                  System.out.println("The Length of JSON Array is..."+jsonArray.length());
                  for(int i =0;i&lt;jsonArray.length();i++){
                      contact = new HashMap&lt;String, String&gt;();
                      JSONObject c = jsonArray.getJSONObject(i);
                      getQuestionsStr = c.getString("GetQuestion");
                      idStr = c.getString("_id");
                      getMaxAnsLengthStr = c.getString("MaxAnswerLength");
                      userIdStr = c.getString("UserId");
                      userRankStr = c.getString("UserRank");
  
                      System.out.println("The Fetched Id is...."+idStr+"\n"+getQuestionsStr+"\n"+getMaxAnsLengthStr+"\n"+userIdStr+"\n"+userRankStr);
  
                      contact.put("getQuestionsStr", getQuestionsStr);
  
                  }
                  contactList.add(contact);
              }
          }catch(Exception e){
              e.printStackTrace();
          }
          return null;
      }
  
      @Override
      protected void onPostExecute(Void result) 
      {
          super.onPostExecute(result);
  
          //  ListViewAdapter la = new ListViewAdapter(getSherlockActivity().getBaseContext(),contactList);
          //  ListViewAdapter la = new ListViewAdapter(getActivity().getBaseContext(),contactList);
  
          //list.setAdapter(la);
  
  
          list.setAdapter(new ListViewAdapter(getActivity().getBaseContext(),contactList));
      }
  
  }}
  </code></pre>
  
  <p>And my Base adapter class follows here.....</p>
  
  <pre><code>public class ListViewAdapter extends BaseAdapter{
  
  int tempI =0;
  int tempII = 7;
  
  Context context;
  ArrayList&lt;HashMap&lt;String, String&gt;&gt; data;
  LayoutInflater inflater;
  HashMap&lt;String, String&gt; resultp = new HashMap&lt;String, String&gt;();
  
  public ListViewAdapter(Context baseContext,
          ArrayList&lt;HashMap&lt;String, String&gt;&gt; contactList) {
      // TODO Auto-generated constructor stub
  
      this.context = baseContext;
      data = contactList;
  }
  
  @Override
  public int getCount() {
      // TODO Auto-generated method stub
      return data.size();
  }
  
  @Override
  public Object getItem(int position) {
      // TODO Auto-generated method stub
      System.out.println("The Item Value is..."+data.get(position));
      return 0;
  }
  
  @Override
  public long getItemId(int position) {  
      // TODO Auto-generated method stub
      return 0;
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) { 
      // TODO Auto-generated method stub
  
  
      View itemView = null;
      TextView textView1_lv_123;
  
  
      inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);       
  
      itemView = inflater.inflate(R.layout.list_item_view, parent,false);     
      resultp = data.get(position);       
  
      textView1_lv_123 = (TextView)itemView.findViewById(R.id.textView1_lv_123);      
  
      // facing issue from here, data is retuning null unable to append the value to text view 
      String s1 = resultp.get("GetQuestion");
      System.out.println("The demo String is....1234 "+s1);
  
      textView1_lv_123.setText(resultp.get("GetQuestion"));
  
       // if I am printing only resultp value it is returning the value/result which is an last value of array 
  
      System.out.println("The Result value is  "+resultp);
  
  
      return itemView;
  }
  </code></pre>
  
  <p>}</p>