title: Getting null while getting data from Firebase RTD
body: <p>I'm working on a simple app that can sign-in/sign-up.</p>
  <p>Everything works normally except when I try to get data from the &quot;Users&quot; path on Realtime Database, I always get null for UID even though I already pushed my data and this is not a too complex part and I can get data normally with the exact same type others data?</p>
  <p>This is the part where i define User object:</p>
  <pre><code>public class User {
  
      String profile_picture_url , username , user_email, user_uid;
  
      public User(){
  
      }
  
      public User(String profile_picture_url , String userUID , String username,String user_email)
      {
          this.profile_picture_url = profile_picture_url;
          this.user_uid = userUID;
          this.username = username;
          this.user_email = user_email;
      }
  
      //GETTER
      public String getProfile_picture_url() {
          return profile_picture_url;
      }
  
      public String getUsername() {
          return username;
      }
  
      public String getUser_EMail() {
          return user_email;
      }
  
      public String getUserUID() {
          return user_uid;
      }
  }
  </code></pre>
  <p>This is my json tree on Firebase:
  <a href="https://i.stack.imgur.com/mQ4Tn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQ4Tn.png" alt="enter image description here" /></a></p>
  <p>This is the part where I retrieve the data:</p>
  <pre><code>private void readUserFromFB() {
      FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
      Log.d(&quot;firebase_debug2&quot;,firebaseUser.getUid());
      DatabaseReference reference = FirebaseDatabase.getInstance().getReference(&quot;Users&quot;);
      reference.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {
              userList.clear();
              for (DataSnapshot snapshot1 : snapshot.getChildren()) {
                  User user = snapshot1.getValue(User.class);
  
                  Log.d(&quot;firebase_debug2&quot;, &quot; This is email &quot; + user.getUser_EMail());
                  Log.d(&quot;firebase_debug2&quot;,&quot;This is uid &quot; + user.getUserUID());
                  Log.d(&quot;firebase_debug2&quot;, &quot;This is username &quot; + user.getUsername());
  
                
                  userAdapter = new UserAdapter(getContext(), userList);
                  recyclerView.setAdapter(userAdapter);
  
  
              }
          }
  
          @Override
          public void onCancelled(@NonNull @NotNull DatabaseError error) {
  
          }
      });
  
  }
  </code></pre>
  <p>Get this in logcat:</p>
  <pre><code>This is email tas@gmail.com
  This is uid null
  This is username tas
  This is email wwqw@gmail.com
  This is uid null
  This is username wiiwi
  </code></pre>
  <p>Why do I get that annoying problem, hope somebody can help me find out because I tried for hours but can't figure out where I've missed.Thanks</p>