Commit 70e9e44
Fix DocumentSnapshot for non-existent documents in C++ and Unity
There are two fixes here:
* In Android C++, a non-existent document is returned as a null map;
translate that to an empty map in C++
* In Unity, handle non-existent documents specially to avoid returning an
empty Dictionary to C# users (where null is the expected value).
PiperOrigin-RevId: 3474165921 parent 0d779c4 commit 70e9e44
File tree
2 files changed
+92
-96
lines changed- firestore/src
- android
- tests
2 files changed
+92
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
0 commit comments