Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit e3fa88f

Browse files
author
Yuncong Zhang
committed
[1.5.4] Fix chip theme issue.
1 parent 00c951f commit e3fa88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/material/chip_theme.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ public override int GetHashCode() {
223223
hashCode = (hashCode * 397) ^ this.disabledColor.GetHashCode();
224224
hashCode = (hashCode * 397) ^ this.selectedColor.GetHashCode();
225225
hashCode = (hashCode * 397) ^ this.secondarySelectedColor.GetHashCode();
226-
hashCode = (hashCode * 397) ^ this.shadowColor.GetHashCode();
227-
hashCode = (hashCode * 397) ^ this.selectedShadowColor.GetHashCode();
226+
hashCode = (hashCode * 397) ^ this.shadowColor?.GetHashCode() ?? 0;
227+
hashCode = (hashCode * 397) ^ this.selectedShadowColor?.GetHashCode() ?? 0;
228228
hashCode = (hashCode * 397) ^ this.labelPadding.GetHashCode();
229229
hashCode = (hashCode * 397) ^ this.padding.GetHashCode();
230230
hashCode = (hashCode * 397) ^ this.shape.GetHashCode();

0 commit comments

Comments
 (0)