diff --git a/src/Mono.Android/Xamarin.Android.Net/AndroidMessageHandler.cs b/src/Mono.Android/Xamarin.Android.Net/AndroidMessageHandler.cs index 4b47d54f244..b990aa50e4f 100644 --- a/src/Mono.Android/Xamarin.Android.Net/AndroidMessageHandler.cs +++ b/src/Mono.Android/Xamarin.Android.Net/AndroidMessageHandler.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Compression; using System.Linq; @@ -233,6 +234,9 @@ public int MaxAutomaticRedirections /// If true then the server requested authorization and the application must use information /// found in to set the value of /// +#if NETCOREAPP + [MemberNotNullWhen(true, nameof(RequestedAuthentication))] +#endif public bool RequestNeedsAuthorization { get { return RequestedAuthentication?.Count > 0; } }