title: Unable to set an ArrayList's value when populated from a database
body: <pre class="lang-java prettyprint-override"><code>ccontacts = new ArrayList&lt;&gt;();
  
  DatabaseReference dbGelenler = db.getReference("Filmler");
  
  dbGelenler.addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
          public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
              for (DataSnapshot gelenler:dataSnapshot.getChildren()){
                  ccontacts.add(new Data(gelenler.getValue(Film.class).getAciklama(),gelenler.getValue(Film.class).getBen(),gelenler.getValue(Film.class).getImdb(),gelenler.getValue(Film.class).getIsim(),gelenler.getValue(Film.class).getIzlemeLinki(),gelenler.getValue(Film.class).getKategori(),gelenler.getValue(Film.class).getNe(),gelenler.getValue(Film.class).getService(),gelenler.getValue(Film.class).getTrailer(),gelenler.getValue(Film.class).getUrl(),gelenler.getValue(Film.class).getWhat(),gelenler.getValue(Film.class).getYear()));
              }
          }
  
          @Override
          public void onCancelled(@NonNull DatabaseError databaseError) {
  
          }
      });
  
  for (Data d:ccontacts){
      b.setText(d.getIsim());
  }
  </code></pre>
  
  <p>When I directly set the text via <code>gelenler.getValue()</code> it works, however when I want to populate an <code>ArrayList</code> with this information it fails and receives <code>null</code>.  Any help would be appreciated.</p>