diff --git a/osu.Game/Rulesets/Objects/HitObject.cs b/osu.Game/Rulesets/Objects/HitObject.cs
index f0547550e0..5e029139d9 100644
--- a/osu.Game/Rulesets/Objects/HitObject.cs
+++ b/osu.Game/Rulesets/Objects/HitObject.cs
@@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
+using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Game.Audio;
using osu.Game.Beatmaps;
@@ -56,6 +57,7 @@ namespace osu.Game.Rulesets.Objects
///
/// The hit windows for this .
///
+ [CanBeNull]
public HitWindows HitWindows { get; set; }
private readonly List nestedHitObjects = new List();
@@ -116,6 +118,7 @@ namespace osu.Game.Rulesets.Objects
/// This will only be invoked if hasn't been set externally (e.g. from a .
///
///
+ [CanBeNull]
protected virtual HitWindows CreateHitWindows() => new HitWindows();
}
}