Crunch
  1. Crunch
  2. CRUNCH-142

Context not being passed to FilterFn instances wrapped in boolean AndFn,OrFn,NotFn

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: Core
    • Labels:
      None

      Description

      The boolean filter classes AndFn, OrFn and NotFn delegate calls to FilterFn instances internally, but setContext is not called on these first.

      As a result, methods which need the context such as getCounter() fail with NullPointerException.

      1. CRUNCH-142.patch
        2 kB
        Dave Beech
      2. CRUNCH-142_3.patch
        10 kB
        Gabriel Reid
      3. CRUNCH-142_2.patch
        3 kB
        Gabriel Reid
      4. CRUNCH-142_1.patch
        3 kB
        Gabriel Reid

        Activity

          People

          • Assignee:
            Gabriel Reid
            Reporter:
            Dave Beech
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development