title: Why did Firebase Realtime Database create empty child entries?
body: <p>I'm trying to create a simple app that takes in a comment and then posts the comment in a RecyclerView. But Firebase is creating thousands of empty children. I'm not sure why this is happening and would appreciate any help.</p>
  
  <p>Here is a picture of what Firebase is doing.
  <a href="https://i.stack.imgur.com/HEq7X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HEq7X.png" alt="enter image description here"></a></p>
  
  <p>Here is the method i'm using</p>
  
  <pre><code>private void postComment() {
      String title = editTitle.getText().toString();
      String content = editContent.getText().toString();
  
      Post post = new Post(title, content);
  
      databaseReference.push() // Creates unique id for comment
              .setValue(post);
  
      adapter.notifyDataSetChanged();
  }
  </code></pre>
  
  <p>Here is my Post Class</p>
  
  <pre><code>package com.example.androidfirebaserealtimedb;
  
  public class Post {
  // Member Variables
  private String title, content;
  
  // Constructors
  public Post() { }
  
  public Post(String title, String content) {
      this.title = title;
      this.content = content;
  }
  
  // Getters and Setters
  
  public String getTitle() {
      return title;
  }
  
  public void setTitle(String title) {
      this.title = title;
  }
  
  public String getContent() {
      return content;
  }
  
  public void setContent(String content) {
      this.content = content;
  }
  }
  </code></pre>