if (attachedCharacterInfo == null) {
logger.debug("Price set does not have attached character, skipping");
return;
}
try {
Character character = characterDao.get(new Key<Character>(Character.class, attachedCharacterInfo.getId()));
logger.debug("Updating price set attached character information: {} ({})", character.getName(), character.getCharacterID());
attachedCharacterInfo.setCharacterID(character.getCharacterID());
attachedCharacterInfo.setName(character.getName());
attachedCharacterInfo.setCorporationID(character.getCorporationID());
attachedCharacterInfo.setCorporationName(character.getCorporationName());
attachedCharacterInfo.setCorporationTicker(character.getCorporationTicker());
attachedCharacterInfo.setAllianceID(character.getAllianceID());
attachedCharacterInfo.setAllianceName(character.getAllianceName());
} catch (NotFoundException e) {
logger.warn("Attached character does not exist: {}", attachedCharacterInfo.getId());
priceSet.setAttachedCharacterInfo(null);
}
priceSetDao.putWithoutChecks(priceSet);