Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.25.0
    • 1.26.0
    • core

    Description

      It looks like none of the uses for Mappings#asList is ready to handle nulls.
      So far there are 6 usages of the method, however, it is puzzling if NPE is expected behavior there.

      I'm inclined to create two variations of the method:
      1) List<@Nullable Integer> asList(...) – keep the current method current one
      2) List<@NonNull Integer> asList(...) – throw exceptions on invalid mappings

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimirsitnikov Vladimir Sitnikov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m