mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-30897 - NPE: EditorTextField$4.getAttributes
This commit is contained in:
@@ -408,7 +408,7 @@ public class EditorTextField extends NonOpaquePanel implements DocumentListener,
|
||||
@Override
|
||||
public TextAttributes getAttributes(TextAttributesKey key) {
|
||||
final TextAttributes attributes = super.getAttributes(key);
|
||||
if (!isEnabled()) {
|
||||
if (!isEnabled() && attributes != null) {
|
||||
return new TextAttributes(UIUtil.getInactiveTextColor(), attributes.getBackgroundColor(), attributes.getEffectColor(), attributes.getEffectType(), attributes.getFontType());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user