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

Texture allocation should return null to caller rather than trying to use texture and getting NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0.2
    • fx2.0
    • javafx

      If you look at the stack trace from RT-16536 you will note that the Prism texture allocation methods try to access the return value of the allocated texture without checking for null, leading to an NPE. It would be easier for clients to do error handling if we returned the null without throwing NPE.

      As a workaround, the client (the WebView renderer in this case) can catch the NPE.

            kprazdnikwse Kirill.Prazdnikov (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: