Skip to content

Commit 7bbc8a5

Browse files
Fix bug
1 parent 8961ad0 commit 7bbc8a5

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/model

1 file changed

+1
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/model/DocumentKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static DocumentKey empty() {
5151
public static DocumentKey fromName(String name) {
5252
ResourcePath resourceName = ResourcePath.fromString(name);
5353
hardAssert(
54-
resourceName.length() >= 4
54+
resourceName.length() > 4
5555
&& resourceName.getSegment(0).equals("projects")
5656
&& resourceName.getSegment(2).equals("databases")
5757
&& resourceName.getSegment(4).equals("documents"),

0 commit comments

Comments
 (0)