Merge "Fix potential crash in ImageTransformState"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user