Skip to content

Commit 8961ad0

Browse files
Fix bug
1 parent 635d845 commit 8961ad0

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/DatabaseId.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private DatabaseId(String projectId, String databaseId) {
4343
public static DatabaseId fromName(String name) {
4444
ResourcePath resourceName = ResourcePath.fromString(name);
4545
hardAssert(
46-
resourceName.length() >= 3
46+
resourceName.length() > 3
4747
&& resourceName.getSegment(0).equals("projects")
4848
&& resourceName.getSegment(2).equals("databases"),
4949
"Tried to parse an invalid resource name: %s",

0 commit comments

Comments
 (0)