Only seed the ads truststore when the ADS were not already replicated. This avoids a NullPointerException when we enable replication on a baseDN between two servers and another baseDN was already being replicated.
| | |
| | | ERR_REPLICATION_UPDATING_ADS.get(adce.getMessage()), |
| | | ERROR_UPDATING_ADS, adce); |
| | | } |
| | | if (!adsAlreadyReplicated) |
| | | { |
| | | try |
| | | { |
| | | ServerDescriptor.seedAdsTrustStore(ctxDestination, |
| | |
| | | ERR_REPLICATION_ENABLE_SEEDING_TRUSTSTORE.get(t.toString()), |
| | | ERROR_SEEDING_TRUSTORE, t); |
| | | } |
| | | } |
| | | printProgressMessage(formatter.getFormattedDone()); |
| | | printProgressMessage(formatter.getLineBreak()); |
| | | |