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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Environment:

      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

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

                Dates

                Created:
                Updated: