if (person == null) {
LOG.warn("No associated person found for artwork: {}", artwork);
return;
}
LOG.debug("Scan online for photo: {}", artwork);
<BUG>List<ArtworkDTO> photos = null;
for (String prio : determinePriorities("yamj3.artwork.scanner.photo.priorities", registeredPersonArtworkScanner.keySet())) {
IPersonArtworkScanner scanner = registeredPersonArtworkScanner.get(prio);
LOG.debug(USE_SCANNER_FOR, scanner.getScannerName(), person);
photos = scanner.getPhotos(person);
</BUG>
if (CollectionUtils.isNotEmpty(photos)) {

if (person == null) {
LOG.warn("No associated person found for artwork: {}", artwork);
return;
}
LOG.debug("Scan online for photo: {}", artwork);
List<ArtworkDTO> photos = null;
IPerson iPerson = buildPerson(person);
for (String prio : determinePriorities("yamj3.artwork.scanner.photo.priorities", registeredPersonArtworkScanner.keySet())) {
PersonArtworkScanner scanner = registeredPersonArtworkScanner.get(prio);
LOG.debug(USE_SCANNER_FOR, scanner.getScannerName(), person);
photos = scanner.getPhotos(iPerson);
if (CollectionUtils.isNotEmpty(photos)) {
