quick fix — avoid NPE if we cannot find font by console type

This commit is contained in:
Vladimir Krivosheev
2015-02-20 11:52:37 +01:00
parent 821ed4c4b2
commit 62e9cc7929
@@ -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