Commons Functor
  1. Commons Functor
  2. FUNCTOR-21

NPE when UnarySequence is created with an arraylist containing a null element

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:

      Java 1.6
      Debian 6

      Description

      If you create a UnarySequence<?> with an ArrayList that contains a null element and execute the run method, you will receive a NullPointerException.

      The same happens when you use the constructor UnarySequence(UnaryProcedure<? super A>... procedures). A null procedure is converted into a list with the null object as the sole element.

        Activity

        Hide
        Bruno P. Kinoshita added a comment -

        Fixed in r1363382. An extra verification was added to the then method. Tests in place.

        Show
        Bruno P. Kinoshita added a comment - Fixed in r1363382. An extra verification was added to the then method. Tests in place.

          People

          • Assignee:
            Bruno P. Kinoshita
            Reporter:
            Bruno P. Kinoshita
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development