Skip to content

Commit

Permalink
Merge pull request #168 from scuniff/bug-167
Browse files Browse the repository at this point in the history
#167  equals() comparing objects of different types
  • Loading branch information
jburel authored Mar 22, 2024
2 parents 82d598f + 64e57e3 commit f67fdb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ome/services/ThumbnailBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f67fdb6

Please sign in to comment.