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

ClipboardContent should throw NPE when null data passed

    XMLWordPrintable

Details

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: