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

Passing in a null Callback as an argument to snapshot should throw NPE back to caller

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:

      Description

      If you call Node.snapshot or Scene.snapshot with a null Callback, an NPE will be generated after the snapshot has been performed when the runtime tries to call the callable. The user has no way to catch this exception nor is there any indication other than a warning message in the console that anything went wrong.

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              kcr Kevin Rushforth
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: