title: App crashing when firebase database child node is removed
body: <p>I have fragment activity called NewRescueRequest that loads values from a database child node.</p>
  
  <pre><code> databaseReference.child(firebaseAuth.getUid()).addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  
              RequestEntries requestEntries = dataSnapshot.getValue(RequestEntries.class);
              requestfirstname.setText(requestEntries.getRequestFirstName() + " " + requestEntries.getRequestLastName());
              requestcontactnumber.setText(requestEntries.getRequestContactNumber());
              requestlocation.setText(requestEntries.getRequestLocation());
              requestlandmarks.setText(requestEntries.getRequestLandmarks());
  </code></pre>
  
  <p>When the child is moved to a different node, the app crashes. I want to make it go to a different activity when the database child is removed from the node. I tried using ValueEventListener on the onCreateView method.</p>
  
  <pre><code>databaseReference.child(firebaseAuth.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
          public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  
              if(dataSnapshot.exists()){
  
              }
              else{
                  setRequestFragment();
              }
          }
  
          @Override
          public void onCancelled(@NonNull DatabaseError databaseError) {
  
          }
      });
  </code></pre>