Skip to content

Commit b2cccfc

Browse files
committed
Fix project ID equality
1 parent b6ac90c commit b2cccfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/ProjectState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public ProjectState withProject(ProjectMetadata updatedProject) {
8484
if (metadata() == updatedProject) {
8585
return this;
8686
}
87-
if (updatedProject.id() != this.project) {
87+
if (project.equals(updatedProject.id()) == false) {
8888
throw new IllegalArgumentException(
8989
Strings.format(
9090
"Unable to update project state with project ID [%s] because updated project has ID [%s]",

0 commit comments

Comments
 (0)