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

java.lang.NullPointerException thrown when JavaHelp window pop-up.

XMLWordPrintable

    • x86
    • windows_7

      Help topic can't display the proper HTML format for 5u26b30 cte test.
      Testsuite name: CTE Regressions manual
      JDK/JRE tested: 5u26b30-j4b (jdkfb-1_5_0_26-ea-bin-b30-windows-i586-p-02_jul_2010.exe)
      OS/architecture: win7-ultimate-x86
      Reproducible: Always
      Is it a platform specific regression: N
      Is it a Regression: Not sure

      Steps to reproduce:
      1. Launch the case java/net/URLConnection/4407646/Test4407646.java.
        Open IE browser and load the following page
           https://jpseuwt-ap/testcases/131/4407646/helptest/HelpTest.html
       On the 'Security Alert' page press 'ok' and 'yes' to proceed
      2. On the browser there will be a button 'Help!', click that button
      3. Press 'NO' on 'An applet would like to print' question
       JavaHelp window will appear
       
      Check:
      A Help window will pop up on Left side, the table of contents is displayed correctly and on Right side
      If the help topics themselves are displayed in plain text, with the HTML formatting tags being displayed instead of being used.
         - test FAILED
      If the help topic displayed in proper HTML format, test PASSED

      Actual behavior:
      Help topic can't display proper HTML format. And click any contents on left side of help window, java.lang.NullPointerException thrown in java console.
      Please refer to the attachment file help.jpg. Normally picture is help_normal.jpg.

      Exceptions:
      Using URL: https://jpseuwt-ap/testcases/131/4407646/helptest/Help/Sentences_Online_Help.hs
      Exception in thread "Thread-8" java.lang.NullPointerException
               at javax.swing.text.html.parser.Parser.errorContext(Unknown Source)
               at javax.swing.text.html.parser.Parser.parse(Unknown Source)
               at javax.swing.text.html.parser.DocumentParser.parse(Unknown Source)
               at javax.swing.text.html.parser.ParserDelegator.parse(Unknown Source)
               at javax.swing.text.html.HTMLEditorKit.read(Unknown Source)
               at javax.swing.JEditorPane.read(Unknown Source)
               at javax.swing.JEditorPane$PageLoader.run(Unknown Source)

      Validation:
      1. same platform/ 5u25b03-j4b(jdkfb-1_5_0_25-fcs-bin-b03-windows-i586-p-15_jun_2010.exe): pass
      2. winxppro-sp3-x86/same build : fail

            coffeys Sean Coffey
            tonyli Tony Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: