mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 12:32:58 +08:00
Fix potential null reference in LINQ method
This commit is contained in:
parent
71e2815e7e
commit
37f7486fb1
@ -148,7 +148,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
public ISample GetSample(ISampleInfo sampleInfo) => source?.GetSample(sampleInfo);
|
||||
public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup) => source?.GetConfig<TLookup, TValue>(lookup);
|
||||
public ISkin FindProvider(Func<ISkin, bool> lookupFunction) => lookupFunction(this) ? this : source?.FindProvider(lookupFunction);
|
||||
public IEnumerable<ISkin> AllSources => new[] { this }.Concat(source?.AllSources);
|
||||
public IEnumerable<ISkin> AllSources => new[] { this }.Concat(source?.AllSources ?? Enumerable.Empty<ISkin>());
|
||||
|
||||
public void TriggerSourceChanged()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user