Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf050e commit 58973e3Copy full SHA for 58973e3
firestore/app/src/main/java/com/google/example/firestore/DocSnippets.java
@@ -598,7 +598,7 @@ public void getDocument() {
598
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
599
if (task.isSuccessful()) {
600
DocumentSnapshot document = task.getResult();
601
- if (document != null && document.exists()) {
+ if (document.exists()) {
602
Log.d(TAG, "DocumentSnapshot data: " + document.getData());
603
} else {
604
Log.d(TAG, "No such document");
0 commit comments