Skip to content

Commit 2ce8a22

Browse files
Fix Kotlin
1 parent 9ab4f2c commit 2ce8a22

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/ktx/src/test/java/com/google/firebase/firestore/testutil

1 file changed

+1
-1
lines changed

firebase-firestore/ktx/src/test/java/com/google/firebase/firestore/testutil/TestUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static FieldValue wrap(Object value) {
4141

4242
public static ObjectValue wrapObject(Map<String, Object> value) {
4343
// Cast is safe here because value passed in is a map
44-
return (ObjectValue) wrap(value);
44+
return new ObjectValue(wrap(value).getProto());
4545
}
4646

4747
public static DocumentKey key(String key) {

0 commit comments

Comments
 (0)