diff --git a/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java b/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java index e581ee40fb86..03592f5ba1fd 100644 --- a/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java +++ b/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java @@ -93,11 +93,10 @@ public final class ColorKey implements Comparable { if (key == null) { key = find(externalName); } - else { - LOG.assertTrue(key.getDefaultColor() == null, "default color already assigned"); - } - key.myDefaultColor = defaultColor; + if (key.getDefaultColor() == null) { + key.myDefaultColor = defaultColor; + } return key; } } \ No newline at end of file