Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7379

CandidateParameterResolver is prone to NPE's when null candidate is passed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.5.13, 5.6.8, 5.7.2, 6.0
    • None
    • None
    • None

      ComponentProvider#newInstance wil fail if null is passed among the candidate objects. This happens due to how type comparison happens within parameter resolver - each candidate's type is queries (hence the NPE).

      We can get by with reflective #isInstance call, which will prevent NPE from happening.

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              apchelintcev Aleksandr Pchelintcev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD