The code which triggers that exception is this one:
config.load();
// replace user certificate model with actual data
List<UserCertificateModel> list = UserCertificateConfig.KEY.parse(config).list;
for (UserCertificateModel ucm : list) {
ucm.user = userService.getUserModel(ucm.user.username);
map.put(ucm.user.username, ucm);
}
So the config must contain something fishy, which returns a 'null
' ucm.user
.
Side note: using several kind of ssh keys is done using an ssh config file, as shown in "How to change git ssh user for a remote push temporarily?".