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

Image accepts null as URL - breaks background loading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx
    • None

      Image accepts null as the URL and does nothing about it. It prints a NPE to prism.verbose if the image is not background loaded. If it is background loaded then it breaks a background loading thread. If you ask for enough [null] url images with background=true then it breaks all background image loading.

      I feel the fix should be to throw a NPE from Image constructor if the url is null.

            lnerad Ľubomír Nerád (Inactive)
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: