diff --git a/Sources/Firestore/DocumentReference+Combine.swift b/Sources/Firestore/DocumentReference+Combine.swift index dcd9e741..0d1b532c 100644 --- a/Sources/Firestore/DocumentReference+Combine.swift +++ b/Sources/Firestore/DocumentReference+Combine.swift @@ -134,7 +134,7 @@ extension DocumentReference { self?.getDocument(source: source, completion: { (snapshot, error) in if let error = error { promise(.failure(error)) - } else if let snapshot = snapshot { + } else if let snapshot = snapshot, snapshot.data() != nil { promise(.success(snapshot)) } else { promise(.failure(FirestoreError.nilResultError))