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

Prevent NPE in PeerPublisher if Peer Connector does not exist

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.3.0
    • Fix Version/s: EJBCA 7.3.1, EJBCA 7.3.0.1
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Testing
    • Sprint:
      EJBCA Team Bob - 2019 w40

      Description

      org.ejbca.configdump.handlers.PublisherPropertiesDumpHandler.convertPeerNameToId(Object, ConfigdumpCore) converts from Name to Id and logs

              configdumpCore.recoverableError("Peer connector does not exist: " + name);
              return null;
      

      in case of error, but the "null" value is then used as a Map.put value → NPE.

        Attachments

          Activity

            People

            Assignee:
            ulf_undmark Ulf Undmark
            Reporter:
            johan Johan Eklund
            Verified by:
            Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m