title: Bypass a push id node in firebase
body: <p>I am getting a null when I try to get data of the child node of a push id. My structure look like this
  <a href="https://i.stack.imgur.com/fiKDb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiKDb.png" alt="enter image description here"></a>
  And this is my code for getting the message data</p>
  
  <pre><code>DatabaseReference mMessageDatabase = FirebaseDatabase.getInstance().getReference().child("private_messages");
  mMessageDatabase.child(User1).child(User2).addListenerForSingleValueEvent(new ValueEventListener() {
  
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              if (dataSnapshot != null) {
  
                  // getting null in message
                  String message = dataSnapshot.child("message").getValue(String.class);
                  Log.e(TAG, "CHAT_LOG: " + message);
              }
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>
  
  <p>Is there something wrong in my code or Am I missing a code there?</p>
  
  <h1>EDIT:</h1>
  
  <p>I try using a query to test if it gives me data. heres my code</p>
  
  <pre><code>        messageDatabase.orderByChild("seen").equalTo("false")
                  .addListenerForSingleValueEvent(new ValueEventListener() {
  
                      @Override
                      public void onDataChange(DataSnapshot dataSnapshot) {
                          if (dataSnapshot.exists()) {
                              for (DataSnapshot datas : dataSnapshot.getChildren()) {
                                  String key = datas.getKey();
                                  String seen = dataSnapshot.child(key).child("seen").getValue(String.class);
                                  Log.e(TAG, "CHAT_LOG: Seen= " + seen);
                              }
                          }
                      }
  
                      @Override
                      public void onCancelled(DatabaseError databaseError) {
  
                      }
                  });
  </code></pre>
  
  <p>Fortunately it gives me a data. THe only problem is getting the message. I used a query here and I need to give a specific value to it.</p>