< prev index next >

modules/javafx.web/src/main/java/javafx/scene/web/HTMLEditorSkin.java

Print this page

        

@@ -1007,11 +1007,11 @@
             else {
                 /*
                 ** these is no font size set in webview,
                 ** let's just use the default....
                 */
-                if (!fontSizeComboBox.getValue().equals(sizeFontMap.get(SIZE_SMALL))) {
+                if ((fontSizeComboBox.getValue() != null) && !fontSizeComboBox.getValue().equals(sizeFontMap.get(SIZE_SMALL))) {
                     fontSizeComboBox.setValue(sizeFontMap.get(SIZE_SMALL));
                 }
             }
         }
 
< prev index next >