From 4da23bc3bf538c78f0a8d18942cbee196816d099 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 24 Sep 2015 15:26:01 +0300 Subject: [PATCH] IDEA-CR-4999 followup --- platform/platform-api/src/com/intellij/ui/tabs/TabInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/tabs/TabInfo.java b/platform/platform-api/src/com/intellij/ui/tabs/TabInfo.java index 91536d53deaa..527eaf22abb2 100644 --- a/platform/platform-api/src/com/intellij/ui/tabs/TabInfo.java +++ b/platform/platform-api/src/com/intellij/ui/tabs/TabInfo.java @@ -108,7 +108,7 @@ public final class TabInfo implements Queryable, PlaceProvider { public TabInfo setText(String text) { List attributes = myText.getAttributes(); - TextAttributes textAttributes = attributes.isEmpty() ? null : attributes.get(0).toTextAttributes(); + TextAttributes textAttributes = attributes.size() == 1 ? attributes.get(0).toTextAttributes() : null; TextAttributes defaultAttributes = getDefaultAttributes().toTextAttributes(); if (!myText.toString().equals(text) || !Comparing.equal(textAttributes, defaultAttributes)) { clearText(false);