fix crash if either layer name or content name were null
@@ -501,8 +501,13 @@ public class LottieDrawable extends Drawable implements Drawable.Callback {
@Override public int hashCode() {
int hashCode = 17;
+ if (layerName != null) {
hashCode = hashCode * 31 * layerName.hashCode();
+ }
+
+ if (contentName != null) {
hashCode = hashCode * 31 * contentName.hashCode();
+ }
return hashCode;
}
