mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
quick fix — avoid NPE if we cannot find font by console type
This commit is contained in:
@@ -126,7 +126,11 @@ public class ConsoleViewUtil {
|
||||
|
||||
@Override
|
||||
public Font getFont(EditorFontType key) {
|
||||
return super.getFont(EditorFontType.getConsoleType(key));
|
||||
Font font = super.getFont(EditorFontType.getConsoleType(key));
|
||||
if (font == null) {
|
||||
return super.getFont(key);
|
||||
}
|
||||
return font;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user