mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[android][firestore] log type rather than value on error
This commit is contained in:
@@ -7,7 +7,6 @@ import com.google.firebase.firestore.DocumentChange;
|
||||
import com.google.firebase.firestore.DocumentSnapshot;
|
||||
import com.google.firebase.firestore.QuerySnapshot;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -161,7 +160,7 @@ public class FirestoreSerialize {
|
||||
Object[] listAsArray = list.toArray(new Object[list.size()]);
|
||||
writableArray.pushArray(objectArrayToWritable(listAsArray));
|
||||
} else {
|
||||
throw new RuntimeException("Cannot convert object of type " + item);
|
||||
throw new RuntimeException("Cannot convert object of type " + itemClass);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +197,7 @@ public class FirestoreSerialize {
|
||||
Object[] array = list.toArray(new Object[list.size()]);
|
||||
map.putArray(key, objectArrayToWritable(array));
|
||||
} else {
|
||||
throw new RuntimeException("Cannot convert object of type " + value);
|
||||
throw new RuntimeException("Cannot convert object of type " + valueClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user