diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Threading/Thread.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/Thread.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/Thread.cs b/src/System.Private.CoreLib/shared/System/Threading/Thread.cs index 9707b03499..eeb2f413ce 100644 --- a/src/System.Private.CoreLib/shared/System/Threading/Thread.cs +++ b/src/System.Private.CoreLib/shared/System/Threading/Thread.cs @@ -355,7 +355,7 @@ namespace System.Threading Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); lock (nameToSlotMap) { - LocalDataStoreSlot slot; + LocalDataStoreSlot? slot; if (!nameToSlotMap.TryGetValue(name, out slot)) { slot = AllocateSlot(); |