We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8961ad0 commit 7bbc8a5Copy full SHA for 7bbc8a5
firebase-firestore/src/main/java/com/google/firebase/firestore/model/DocumentKey.java
@@ -51,7 +51,7 @@ public static DocumentKey empty() {
51
public static DocumentKey fromName(String name) {
52
ResourcePath resourceName = ResourcePath.fromString(name);
53
hardAssert(
54
- resourceName.length() >= 4
+ resourceName.length() > 4
55
&& resourceName.getSegment(0).equals("projects")
56
&& resourceName.getSegment(2).equals("databases")
57
&& resourceName.getSegment(4).equals("documents"),
0 commit comments