This commit is contained in:
Clebert Suconic 2018-02-02 11:10:46 -05:00
commit 26a28d0686
1 changed files with 6 additions and 2 deletions

View File

@ -1159,7 +1159,9 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
Map<String, Object> params = configurations.get(0).getParams();
params.put(ActiveMQDefaultConfiguration.getPropMaskPassword(), mainConfig.isMaskPassword());
if (mainConfig.isMaskPassword() != null) {
params.put(ActiveMQDefaultConfiguration.getPropMaskPassword(), mainConfig.isMaskPassword());
}
if (mainConfig.getPasswordCodec() != null) {
params.put(ActiveMQDefaultConfiguration.getPropPasswordCodec(), mainConfig.getPasswordCodec());
@ -1180,7 +1182,9 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
Map<String, Object> params = configurations.get(0).getParams();
params.put(ActiveMQDefaultConfiguration.getPropMaskPassword(), mainConfig.isMaskPassword());
if (mainConfig.isMaskPassword() != null) {
params.put(ActiveMQDefaultConfiguration.getPropMaskPassword(), mainConfig.isMaskPassword());
}
if (mainConfig.getPasswordCodec() != null) {
params.put(ActiveMQDefaultConfiguration.getPropPasswordCodec(), mainConfig.getPasswordCodec());