<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><CONTEXT>if (person == null) {LOG.warn("No associated person found for artwork: {}", artwork);return;}LOG.debug("Scan online for photo: {}", artwork);<extra_id_0>if (CollectionUtils.isNotEmpty(photos)) {</CONTEXT>
IPerson iPerson = buildPerson(person);photos = scanner.getPhotos(iPerson);