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

ClipboardContent should throw NPE when null data passed

    Details

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

      Description

      Native clipboard cannot handle null data. Currently we let users collect null references in ClipboardContent instance and later when it's passed to a Clipboard, user gets NPE. It would be more convenient to throw the NPE immediately from ClipboardContent, so that user gets NPE on the place where the null reference is passed instead of somewhere later (in which case he needs to search where the null reference was passed).

        Attachments

          Activity

            People

            • Assignee:
              psafrata Pavel Šafrata
              Reporter:
              psafrata Pavel Šafrata
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: