From 4245af28e1a3b1d953e391d29c65d535779c70be Mon Sep 17 00:00:00 2001 From: Salman Ahmed Date: Fri, 5 Nov 2021 04:50:52 +0300 Subject: [PATCH] Disable other false-positive null inspections with comment --- .../BeatmapListing/BeatmapSearchMultipleSelectionFilterRow.cs | 2 ++ osu.Game/Overlays/Changelog/ChangelogHeader.cs | 2 ++ osu.Game/Overlays/Comments/CommentEditor.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/osu.Game/Overlays/BeatmapListing/BeatmapSearchMultipleSelectionFilterRow.cs b/osu.Game/Overlays/BeatmapListing/BeatmapSearchMultipleSelectionFilterRow.cs index e0632ace58..845190f285 100644 --- a/osu.Game/Overlays/BeatmapListing/BeatmapSearchMultipleSelectionFilterRow.cs +++ b/osu.Game/Overlays/BeatmapListing/BeatmapSearchMultipleSelectionFilterRow.cs @@ -23,6 +23,8 @@ namespace osu.Game.Overlays.BeatmapListing public BeatmapSearchMultipleSelectionFilterRow(LocalisableString header) : base(header) { + // ReSharper disable once PossibleNullReferenceException + // see https://youtrack.jetbrains.com/issue/RSRP-486768 Current.BindTo(filter.Current); } diff --git a/osu.Game/Overlays/Changelog/ChangelogHeader.cs b/osu.Game/Overlays/Changelog/ChangelogHeader.cs index 52dea63ab7..69a8cb2ce0 100644 --- a/osu.Game/Overlays/Changelog/ChangelogHeader.cs +++ b/osu.Game/Overlays/Changelog/ChangelogHeader.cs @@ -39,6 +39,8 @@ namespace osu.Game.Overlays.Changelog Build.ValueChanged += showBuild; + // ReSharper disable once PossibleNullReferenceException + // see https://youtrack.jetbrains.com/issue/RSRP-486768 Streams.Current.ValueChanged += e => { if (e.NewValue?.LatestBuild != null && !e.NewValue.Equals(Build.Value?.UpdateStream)) diff --git a/osu.Game/Overlays/Comments/CommentEditor.cs b/osu.Game/Overlays/Comments/CommentEditor.cs index 20a8ab64f7..1f3931901c 100644 --- a/osu.Game/Overlays/Comments/CommentEditor.cs +++ b/osu.Game/Overlays/Comments/CommentEditor.cs @@ -187,6 +187,8 @@ namespace osu.Game.Overlays.Comments AutoSizeAxes = Axes.Both; LoadingAnimationSize = new Vector2(10); + // ReSharper disable once PossibleNullReferenceException + // see https://youtrack.jetbrains.com/issue/RSRP-486768 drawableText.Text = text; }