diff --git a/platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java b/platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java index 3d912a443f96..334f4bb4a587 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java @@ -59,7 +59,7 @@ public abstract class BackgroundUpdaterTask extends Task.Backgroundable { public BackgroundUpdaterTask(@Nullable Project project, @NotNull String title, @Nullable Comparator comparator) { super(project, title); - myData = new TreeSet<>(comparator); + myData = comparator == null ? ContainerUtil.newSmartList() : new TreeSet<>(comparator); } public void init(@NotNull AbstractPopup popup, @NotNull T component, @NotNull Ref usageView) {