diff --git a/openapi/src/com/intellij/openapi/editor/colors/TextAttributesKey.java b/openapi/src/com/intellij/openapi/editor/colors/TextAttributesKey.java index 388828ccdb83..f18bda909ef9 100644 --- a/openapi/src/com/intellij/openapi/editor/colors/TextAttributesKey.java +++ b/openapi/src/com/intellij/openapi/editor/colors/TextAttributesKey.java @@ -90,10 +90,9 @@ public final class TextAttributesKey implements Comparable { if (key == null) { key = find(externalName); } - else { - LOG.assertTrue(key.getDefaultAttributes() == null, "default attributes already assigned"); + if (key.getDefaultAttributes() == null) { + key.myDefaultAttributes = defaultAttributes; } - key.myDefaultAttributes = defaultAttributes; return key; }