Fix potential nullref

This commit is contained in:
Dean Herbert 2017-08-16 23:20:08 +09:00
parent e64f455ff7
commit 09089a3126

View File

@ -30,7 +30,8 @@ namespace osu.Game.Input.Bindings
new KeyBinding(new[] { Key.LControl, Key.D }, GlobalAction.ToggleDirect),
};
protected override IEnumerable<Drawable> GetKeyboardInputQueue() => new[] { handler }.Concat(base.GetKeyboardInputQueue());
protected override IEnumerable<Drawable> GetKeyboardInputQueue() =>
handler == null ? base.GetKeyboardInputQueue() : new[] { handler }.Concat(base.GetKeyboardInputQueue());
}
public enum GlobalAction