From 64e57e3f9244e461519f7289c82442488581a2f1 Mon Sep 17 00:00:00 2001 From: scuniff <40019379+scuniff@users.noreply.github.com> Date: Thu, 9 Nov 2023 22:50:36 -0800 Subject: [PATCH] #167 equals() comparing objects of different types --- src/main/java/ome/services/ThumbnailBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }