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

        Josh Wills made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gabriel Reid made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gabriel Reid made changes -
        Attachment CRUNCH-142_3.patch [ 12564767 ]
        Gabriel Reid made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Gabriel Reid made changes -
        Fix Version/s 0.5.0 [ 12323476 ]
        Gabriel Reid made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Gabriel Reid [ gabriel.reid ]
        Resolution Fixed [ 1 ]
        Gabriel Reid made changes -
        Attachment CRUNCH-142_2.patch [ 12564723 ]
        Gabriel Reid made changes -
        Attachment CRUNCH-142_1.patch [ 12564716 ]
        Dave Beech made changes -
        Affects Version/s 0.4.0 [ 12323244 ]
        Component/s Core [ 12319202 ]
        Dave Beech made changes -
        Field Original Value New Value
        Attachment CRUNCH-142.patch [ 12564700 ]
        Dave Beech created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development