Skip to content

equals() comparing objects of different types #167

Description

@scuniff

https://github.com/ome/omero-server/blob/master/src/main/java/ome/services/ThumbnailBean.java#L1141

Looks like this code at line 1141 is not comparing objects of the same type

if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata)) {

==================

Should the getVersion() method be added:

if (inProgress && !PROGRESS_VERSION.equals(thumbnailMetadata.getVersion())) {

like it is at line 1042?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions