Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4009

NullPointer in CredentialPolicyEvaluator.validateCredentialContainerValues

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6 (Comenius)
    • 3.6 (Comenius)
    • Model
    • None
    • git: v3.6devel-1635-g3349e19

    Description

      Having a modelHook validateCredentialContainerValues is executed twice:
      OnFirst execution credentialValueProperty contains a value PP(

      {.../common/common-3}

      value):[PPV(ProtectedStringType:ProtectedStringType([encrypted data]))]

      On second execution (triggered by modelContext.rot() in hook)
      credentialValueProperty is null and therefore the NullPointer is raised
      java.lang.NullPointerException: null
      at com.evolveum.midpoint.model.impl.lens.projector.credentials.CredentialPolicyEvaluator.validateCredentialContainerValues(CredentialPolicyEvaluator.java:347)

      Maybe it is sufficient to avoid entering the for-loop if credentialValueProperty is null

      Attachments

        Activity

          People

            michael Michael
            michael Michael
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: