Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d62eeb3e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix potential crash in ImageTransformState" am: 4ab85d92

parents a25279e2 4ab85d92
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -53,7 +53,9 @@ public class ImageTransformState extends TransformState {
            return true;
        }
        if (otherState instanceof ImageTransformState) {
            return mIcon != null && mIcon.sameAs(((ImageTransformState) otherState).getIcon());
            final Icon otherIcon = ((ImageTransformState) otherState).mIcon;
            return mIcon == otherIcon || (mIcon != null && otherIcon != null && mIcon.sameAs(
                    otherIcon));
        }
        return false;
    }