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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 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)

      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);
          }
      }
      ------------------

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

              Created:
              Updated: