Assertion fixed 40929

This commit is contained in:
Olesya Smirnova
2005-02-08 18:34:35 +03:00
parent 90b1348dfa
commit 07c8dd93f6
@@ -90,10 +90,9 @@ public final class TextAttributesKey implements Comparable<TextAttributesKey> {
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;
}