diff --git a/src/main/java/ome/services/ThumbnailBean.java b/src/main/java/ome/services/ThumbnailBean.java index c96111bbf..8a872b21b 100644 --- a/src/main/java/ome/services/ThumbnailBean.java +++ b/src/main/java/ome/services/ThumbnailBean.java @@ -1138,7 +1138,7 @@ public byte[] getThumbnailWithoutDefault(Integer sizeX, Integer sizeY) { private byte[] retrieveThumbnailAndUpdateMetadata(boolean rewriteMetadata) { byte[] thumbnail = retrieveThumbnail(rewriteMetadata); - if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata)) { + if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata.getVersion())) { thumbnailMetadata.setVersion(PROGRESS_VERSION); dirtyMetadata = true; }