6917884: NPE in sun.font.FcFontConfiguration.getPlatformFontNames
authorprr
Thu, 13 Jan 2011 14:11:56 -0800
changeset 7935 0f8cd2f2e564
parent 7934 ee92dd256de6
child 7936 4d5f799d3734
6917884: NPE in sun.font.FcFontConfiguration.getPlatformFontNames Reviewed-by: igor, jgodinez
jdk/src/solaris/classes/sun/font/FontConfigManager.java
--- a/jdk/src/solaris/classes/sun/font/FontConfigManager.java	Thu Jan 13 12:08:01 2011 -0800
+++ b/jdk/src/solaris/classes/sun/font/FontConfigManager.java	Thu Jan 13 14:11:56 2011 -0800
@@ -214,8 +214,9 @@
             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) {