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

ListAdapter throws NPE when adding/removing elements outside of JS context

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        ListAdapter mutators for adding and removing elements rely on Context.getGlobal(), which returns null when invoked outside of a JS context, resulting in a NPE being thrown.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  attila Attila Szegedi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: