6917884: NPE in sun.font.FcFontConfiguration.getPlatformFontNames

Reviewed-by: igor, jgodinez
This commit is contained in:
Phil Race 2011-01-13 14:11:56 -08:00
parent a491a76750
commit c1bf12c7a1

View File

@ -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) {