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

Have an excepition when try to get an inexist applet by getAppletContext().getApplet("test1")

    Details

    • Subcomponent:
    • Resolved In Build:
      b138
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      when try to get an inexist applet by getAppletContext().getApplet("test1"), an exception is threw
      java.lang.NullPointerException
      at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getApplet(Unknown Source)
      at AppletContextTest.start(AppletContextTest.java:66)
      at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      Exception result:
      getAppletContext().getApplet("test1") should get a value of null in 7 as same as 6u24

      Tested build: jdk7 b135-pit and 6u24
      http://rehudson.sfbay.sun.com/hudsonws/deploypit/bundles/windows-i586/b255-2011-03-16_50/
      http://jre.sfbay.sun.com/java/re/jdk/1.6.0_24/promoted/latest/bundles/windows-i586/
      Tested OS: winxp sp3 x86
      Tested browser: IE6 (cannot reproduce it on ff3.6)

      Steps to reproduce
      1) Open the following applet
      http://sqeweb.sfbay.sun.com/jsn/users/sheldon/webCases/appletContext/AppletContextTest.html

      2) The AppletContextTest.html failed to launch and get the exception in console. To validate, the applet should launch successfuly and get the information, >>>>[getApplet test] Get null successfully.

      Attachment is the source code of testcase.

        Attachments

          Activity

            People

            • Assignee:
              igor Igor Nekrestyanov (Inactive)
              Reporter:
              yanqchen Sheldon Chen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: