Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8114866

nls: in non-en lanugage, when creating HTMLEditor, NPE reported.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7 + javafx2.0 b43pit

      Description

      javafx-ui-webnode/src/com/sun/javafx/scene/web/skin/HTMLEditorSkin.properties has been translated to 10 non-en languages. Use the bundle including the translated files - /net/java-g11n.us.oracle.com/projects/web/javafx/2.0/UI_Controls_PIT/0829/artifacts.zip to test HTMLEditor. NPE is reported when trying to new a HTMLEditor in non-en languages.

      Run attached sample: HTMLEditorSample.java with VMargs "-Duser.language=ja" (or other non-en languages) , following is the output and there is not HTMLEditor displayed on the UI. This does not happen with running the sample in en language.

      SEVERE: javafx.scene.control.Control loadSkinClass Failed to load skin 'com.sun.javafx.scene.web.skin.HTMLEditorSkin' for control HTMLEditor[id=null]
      java.lang.NullPointerException
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.addToggleButton(HTMLEditorSkin.java:650)
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.populateToolbars(HTMLEditorSkin.java:562)
      at com.sun.javafx.scene.web.skin.HTMLEditorSkin.<init>(HTMLEditorSkin.java:212)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at javafx.scene.control.Control.loadSkinClass(Control.java:848)
      at javafx.scene.control.Control.impl_cssSet(Control.java:926)
      at javafx.scene.web.HTMLEditor.<init>(HTMLEditor.java:23)
      at nls.javafx.web.HTMLEditorSample1.start(HTMLEditorSample1.java:31)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:298)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:136)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:108)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              jennyh Jenny Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: