Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3744

InternalKeyBindingCreateCommand misses a null check for missing cryptotokens

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.2.0
    • Fix Version/s: EJBCA 6.2.2
    • Component/s: CLI
    • Labels:
      None
    • Issue discovered during:
      Community

      Description

      The line

      final int cryptoTokenId = EjbRemoteHelper.INSTANCE.getRemoteSession(CryptoTokenManagementSessionRemote.class).getIdFromName(
      parameters.get(CRYPTO_TOKEN_KEY));

      misses a nullcheck in case the crypto token is missing, instead an NPE is tossed.

        Attachments

          Activity

            People

            Assignee:
            mikek Mike Agrenius Kushner
            Reporter:
            mikek Mike Agrenius Kushner
            Verified by:
            Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: