[javadoc] Handle null color

Fixes EA-795468 - IAE: ColorUtil.$$$reportNull$$$0

GitOrigin-RevId: b8ea7b3558ab87f93154a7725912cd91d2fb03e3
This commit is contained in:
Tagir Valeev
2023-02-13 14:37:07 +00:00
committed by intellij-monorepo-bot
parent 721babb93d
commit e947f7b9a8
@@ -2617,7 +2617,8 @@ public class JavaDocInfoGenerator {
TextAttributes attributes =
EditorColorsManager.getInstance().getGlobalScheme().getAttributes(CodeInsightColors.WRONG_REFERENCES_ATTRIBUTES);
Color color = attributes.getForegroundColor();
return "<span style=\"color:" + ColorUtil.toHtmlColor(color)+"\">";
String htmlColor = color == null ? "red" : ColorUtil.toHtmlColor(color);
return "<span style=\"color:" + htmlColor + "\">";
}
/**