if (progress != null) progress.setString("Searching finished. Loading images for result list.");
for (int i = 0; i < hits.length(); i++) {
ImageIcon icon = null;
try {
BufferedImage img = null;
<BUG>String fileIdentifier = hits.doc(i).getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue();
</BUG>
if (!fileIdentifier.startsWith("http:")) {
if (fileIdentifier.toLowerCase().endsWith(".jpg")) {
Metadata metadata = new ExifReader(new FileInputStream(fileIdentifier)).extract();

if (progress != null) progress.setString("Searching finished. Loading images for result list.");
for (int i = 0; i < hits.length(); i++) {
ImageIcon icon = null;
try {
BufferedImage img = null;
String fileIdentifier = reader.document(hits.documentID(i)).getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue();
if (!fileIdentifier.startsWith("http:")) {
if (fileIdentifier.toLowerCase().endsWith(".jpg")) {
Metadata metadata = new ExifReader(new FileInputStream(fileIdentifier)).extract();
