提交 b4abbf2f 编写于 作者: P prr

6917884: NPE in sun.font.FcFontConfiguration.getPlatformFontNames

Reviewed-by: igor, jgodinez
上级 88659ee3
...@@ -214,8 +214,9 @@ public class FontConfigManager { ...@@ -214,8 +214,9 @@ public class FontConfigManager {
if (FontUtilities.isLogging()) { if (FontUtilities.isLogging()) {
PlatformLogger logger = FontUtilities.getLogger(); PlatformLogger logger = FontUtilities.getLogger();
logger.info("Fontconfig returned no fonts at all."); logger.info("Fontconfig returned no fonts at all.");
return;
} }
fontConfigFailed = true;
return;
} else if (fontConfigFailed) { } else if (fontConfigFailed) {
for (int i = 0; i< fontArr.length; i++) { for (int i = 0; i< fontArr.length; i++) {
if (fontArr[i].firstFont == null) { if (fontArr[i].firstFont == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册