mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[javadoc] Handle null color
Fixes EA-795468 - IAE: ColorUtil.$$$reportNull$$$0 GitOrigin-RevId: b8ea7b3558ab87f93154a7725912cd91d2fb03e3
This commit is contained in:
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 + "\">";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user