diff --git a/platform/lang-api/src/com/intellij/find/FindModel.java b/platform/lang-api/src/com/intellij/find/FindModel.java index ea140fe0ca8b..0d50acd41097 100644 --- a/platform/lang-api/src/com/intellij/find/FindModel.java +++ b/platform/lang-api/src/com/intellij/find/FindModel.java @@ -16,6 +16,7 @@ package com.intellij.find; import com.intellij.openapi.diagnostic.Logger; +import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.UserDataHolderBase; import com.intellij.openapi.util.text.StringUtil; import com.intellij.psi.search.SearchScope; @@ -712,7 +713,7 @@ public class FindModel extends UserDataHolderBase implements Cloneable { } public void setCustomScope(final SearchScope customScope) { - boolean changed = this.customScope.equals(customScope); + boolean changed = Comparing.equal(this.customScope, customScope); this.customScope = customScope; if (changed) { notifyObservers();