6917884: NPE in sun.font.FcFontConfiguration.getPlatformFontNames
Reviewed-by: igor, jgodinez
This commit is contained in:
parent
a491a76750
commit
c1bf12c7a1
@ -214,8 +214,9 @@ public class FontConfigManager {
|
||||
if (FontUtilities.isLogging()) {
|
||||
PlatformLogger logger = FontUtilities.getLogger();
|
||||
logger.info("Fontconfig returned no fonts at all.");
|
||||
return;
|
||||
}
|
||||
fontConfigFailed = true;
|
||||
return;
|
||||
} else if (fontConfigFailed) {
|
||||
for (int i = 0; i< fontArr.length; i++) {
|
||||
if (fontArr[i].firstFont == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user