diff --git a/osu.Framework/Bindables/Bindable.cs b/osu.Framework/Bindables/Bindable.cs index a18b1b8df8c..1b8f09980da 100644 --- a/osu.Framework/Bindables/Bindable.cs +++ b/osu.Framework/Bindables/Bindable.cs @@ -414,9 +414,8 @@ void ISerializableBindable.SerializeTo(JsonWriter writer, JsonSerializer seriali void ISerializableBindable.DeserializeFrom(JsonReader reader, JsonSerializer serializer) { // Deserialize returns null for json literal "null". - var result = serializer.Deserialize(reader); - Debug.Assert(result != null); - Value = result; + // The nullability of type parameter T is unavailable here, so we can't do any validation. + Value = serializer.Deserialize(reader).AsNonNull(); } private LeasedBindable? leasedBindable;