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

[macosx] Toolkit.getImage() throws NPE for null URL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 9
    • client-libs
    • java version "1.9.0-ea-fastdebug"
      Java(TM) SE Runtime Environment (build 1.9.0-ea-fastdebug-b36)
      Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-fastdebug-b36, mixed mode)

    Description

      Run the following code:
      ------------------
      import java.awt.Toolkit;
      import java.net.URL;

      public class ToolkitGetImageNullURLTest {

          public static void main(String[] args) {
              
              Toolkit.getDefaultToolkit().getImage((URL)null);
          }
      }
      ------------------

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: