diff --git a/packages/cloud_firestore/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java b/packages/cloud_firestore/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java index 48dc24cd6857..2ff3623778dc 100644 --- a/packages/cloud_firestore/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java +++ b/packages/cloud_firestore/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java @@ -74,7 +74,7 @@ protected void writeValue(ByteArrayOutputStream stream, Object value) { writeDouble(stream, ((GeoPoint) value).getLongitude()); } else if (value instanceof VectorValue) { stream.write(DATA_TYPE_VECTOR_VALUE); - writeValue(stream, ((VectorValue) value).getInternalValue()); + writeValue(stream, ((VectorValue) value).toArray()); } else if (value instanceof DocumentReference) { stream.write(DATA_TYPE_DOCUMENT_REFERENCE); FirebaseFirestore firestore = ((DocumentReference) value).getFirestore();