Skip to content

Commit 64e57e3

Browse files
committed
ome#167 equals() comparing objects of different types
1 parent 88aef0f commit 64e57e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/ome/services/ThumbnailBean.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ public byte[] getThumbnailWithoutDefault(Integer sizeX, Integer sizeY) {
11381138
private byte[] retrieveThumbnailAndUpdateMetadata(boolean rewriteMetadata)
11391139
{
11401140
byte[] thumbnail = retrieveThumbnail(rewriteMetadata);
1141-
if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata)) {
1141+
if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata.getVersion())) {
11421142
thumbnailMetadata.setVersion(PROGRESS_VERSION);
11431143
dirtyMetadata = true;
11441144
}

0 commit comments

Comments
 (0)