Skip to content

Commit f67fdb6

Browse files
authored
Merge pull request ome#168 from scuniff/bug-167
ome#167 equals() comparing objects of different types
2 parents 82d598f + 64e57e3 commit f67fdb6

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)