title: Android Empty List
body: <p>I am trying to fill a <code>ListView</code> inside an Async Task!</p>
  
  <pre><code>all_items = gson.toJson(profile);
  this is the rest
  
  try {
              JSONObject object = new JSONObject(all_items);
              JSONArray ja = object.getJSONObject("tree").getJSONArray("children");
              for (int i = 0; i &lt; ja.length(); i++) {
                  JSONObject object1 = ja.getJSONObject(i);
                  if (object1.has("name") &amp;&amp; object1.has("percentage")) {
                      System.out.println(object1.has("name"));//nothing gets printed
                      HashMap&lt;String, Object&gt; tmp = new HashMap&lt;&gt;();
                      tmp.put("name", object1.get("name"));
                      tmp.put("percentage", object1.get("percentage"));
                      array_list.add(tmp);
  
                  }
              }
          }catch(JSONException e){
              e.printStackTrace();
          }
  </code></pre>
  
  <p>Json Array is in this format:</p>
  
  <p>This new code is not outputing nothing,no lists is shown The Json is in this format</p>
  
  <pre><code>{
    "id": "*UNKNOWN*",
    "processed_lang": "en",
    "source": "*UNKNOWN*",
    "tree": {
      "children": [
        {
          "children": [
            {
              "category": "personality",
              "children": [
                {
                  "category": "personality",
                  "children": [
                    {
                      "category": "personality",
                      "id": "Adventurousness",
                      "name": "Adventurousness",
                      "percentage": 0.6317251869427992,
                      "sampling_error": 0.0550028572
  </code></pre>
  
  <p>No Error is thrown however the list is still empty.</p>