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

Commit 4ab85d92 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix potential crash in ImageTransformState"

parents 238f1e28 ccaeb5a4
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;
    }