Skip to content

Commit 1e7e72e

Browse files
committed
fix
1 parent fc8b2d1 commit 1e7e72e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/UserDataReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ private void parseSentinelFieldValue(
385385
* not be included in the resulting parsed data.
386386
*/
387387
public Value parseScalarValue(Object input, ParseContext context) {
388-
if (input.getClass().isArray()) {
388+
if (input == null) {
389+
return Values.NULL_VALUE;
390+
} else if (input.getClass().isArray()) {
389391
throw context.createError("Arrays are not supported; use a List instead");
390392
} else {
391393
try {

0 commit comments

Comments
 (0)