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

[ja] Notepad demo throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • globalization
    • None
    • b138
    • x86
    • linux_redhat_5.0
    • Verified

      JDK bundled demo demo/jfc/Notepad throws exception when executed under ja locale. The demo is localized into ja, sv, and zh_CN and only ja seems to have problem.

      bash-3.2$ export LANG=ja_JP.UTF-8
      bash-3.2$ export LC_ALL=$LANG
      bash-3.2$ java -jar Notepad.jar
      uncaught exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at javax.swing.ImageIcon.<init>(ImageIcon.java:187)
              at Notepad.createToolbarButton(Notepad.java:330)
              at Notepad.createTool(Notepad.java:316)
              at Notepad.createToolbar(Notepad.java:305)
              at Notepad.<init>(Notepad.java:120)
              at Notepad.main(Notepad.java:140)

      Tested using promoted jdk7 b130.

            mfang Michael Fang (Inactive)
            ogino Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: