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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0.2
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: