1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 03:33:22 +08:00

Fix nullref in date text box

This commit is contained in:
smoogipoo 2020-09-02 13:17:17 +09:00
parent 73796fbf33
commit 8bf679db8b

View File

@ -22,11 +22,12 @@ namespace osu.Game.Tournament.Components
} }
// hold a reference to the provided bindable so we don't have to in every settings section. // hold a reference to the provided bindable so we don't have to in every settings section.
private Bindable<DateTimeOffset> bindable; private Bindable<DateTimeOffset> bindable = new Bindable<DateTimeOffset>();
public DateTextBox() public DateTextBox()
{ {
base.Bindable = new Bindable<string>(); base.Bindable = new Bindable<string>();
((OsuTextBox)Control).OnCommit = (sender, newText) => ((OsuTextBox)Control).OnCommit = (sender, newText) =>
{ {
try try