From 07c8dd93f60c3fbe99c114b1328f89fb3dbc7ea5 Mon Sep 17 00:00:00 2001 From: Olesya Smirnova Date: Tue, 8 Feb 2005 18:34:35 +0300 Subject: [PATCH] Assertion fixed 40929 --- .../intellij/openapi/editor/colors/TextAttributesKey.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }