Repository: ashmind/SharpLab

Issue #624: System.NullReferenceException at Roslyn.Utilities.ImmutableArrayExtensions.ToImmutableArrayOrEmpty
Created: 2021-06-19T00:58:36Z
AppInsights query:
exceptions
  | where type == 'System.NullReferenceException'
  | where method == 'Roslyn.Utilities.ImmutableArrayExtensions.ToImmutableArrayOrEmpty'

Duplicate issue #524: System.NullReferenceException at Roslyn.Utilities.ImmutableArrayExtensions.ToImmutableArrayOrEmpty
Created: 2020-05-30T06:11:04Z
[
  {
    "parsedStack": [
      {
        "assembly": "Microsoft.CodeAnalysis.Features, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Microsoft.CodeAnalysis.Completion.Providers.AbstractEmbeddedLanguageCompletionProvider.GetLanguageProviders",
        "level": 0,
        "line": 43,
        "fileName": "/_/src/Features/Core/Portable/Completion/Providers/AbstractEmbeddedLanguageCompletionProvider.cs"
      },
      {
        "assembly": "Microsoft.CodeAnalysis.Features, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Microsoft.CodeAnalysis.Completion.Providers.AbstractEmbeddedLanguageCompletionProvider.ShouldTriggerCompletion",
        "level": 1,
        "line": 48,
        "fileName": "/_/src/Features/Core/Portable/Completion/Providers/AbstractEmbeddedLanguageCompletionProvider.cs"
      },
      {
        "assembly": "Microsoft.CodeAnalysis.Features, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Microsoft.CodeAnalysis.Completion.CompletionServiceWithProviders+<>c__DisplayClass26_0.<GetCompletionsWithAvailabilityOfExpandedItemsAsync>b__3",
        "level": 2,
        "line": 281,
        "fileName": "/_/src/Features/Core/Portable/Completion/CompletionServiceWithProviders.cs"
      },
      {
        "assembly": "System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
        "method": "System.Linq.Enumerable+WhereEnumerableIterator`1.ToArray",
        "level": 3,
        "line": 0
      },
      {
        "assembly": "System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
        "method": "System.Linq.Enumerable.ToArray",
        "level": 4,
        "line": 0
      },
      {
        "assembly": "System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
        "method": "System.Collections.Immutable.ImmutableArray.CreateRange",
        "level": 5,
        "line": 0
      },
      {
        "assembly": "Microsoft.CodeAnalysis.Workspaces, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Roslyn.Utilities.ImmutableArrayExtensions.ToImmutableArrayOrEmpty",
        "level": 6,
        "line": 40,
        "fileName": "/_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Extensions/ImmutableArrayExtensions.cs"
      },
      {
        "assembly": "Microsoft.CodeAnalysis.Features, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Microsoft.CodeAnalysis.Completion.CompletionServiceWithProviders+<GetCompletionsWithAvailabilityOfExpandedItemsAsync>d__26.MoveNext",
        "level": 7,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
        "level": 8,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
        "level": 9,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
        "level": 10,
        "line": 0
      },
      {
        "assembly": "Microsoft.CodeAnalysis.Features, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
        "method": "Microsoft.CodeAnalysis.Completion.CompletionServiceWithProviders+<GetCompletionsAsync>d__25.MoveNext",
        "level": 11,
        "line": 256,
        "fileName": "/_/src/Features/Core/Portable/Completion/CompletionServiceWithProviders.cs"
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
        "level": 12,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
        "level": 13,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
        "level": 14,
        "line": 0
      },
      {
        "assembly": "MirrorSharp.Common, Version=2.1.2.0, Culture=neutral, PublicKeyToken=null",
        "method": "MirrorSharp.Internal.Handlers.Shared.CompletionSupport+<TriggerCompletionAsync>d__9.MoveNext",
        "level": 15,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
        "level": 16,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
        "level": 17,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
        "level": 18,
        "line": 0
      },
      {
        "assembly": "MirrorSharp.Common, Version=2.1.2.0, Culture=neutral, PublicKeyToken=null",
        "method": "MirrorSharp.Internal.Handlers.Shared.TypedCharEffects+<ApplyTypedCharAsync>d__3.MoveNext",
        "level": 19,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
        "level": 20,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
        "level": 21,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
        "level": 22,
        "line": 0
      },
      {
        "assembly": "MirrorSharp.Common, Version=2.1.2.0, Culture=neutral, PublicKeyToken=null",
        "method": "MirrorSharp.Internal.Connection+<ReceiveAndProcessInternalAsync>d__14.MoveNext",
        "level": 23,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
        "level": 24,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
        "level": 25,
        "line": 0
      },
      {
        "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
        "level": 26,
        "line": 0
      },
      {
        "assembly": "MirrorSharp.Common, Version=2.1.2.0, Culture=neutral, PublicKeyToken=null",
        "method": "MirrorSharp.Internal.Connection+<ReceiveAndProcessAsync>d__13.MoveNext",
        "level": 27,
        "line": 0
      }
    ],
    "outerId": "0",
    "message": "Object reference not set to an instance of an object.",
    "type": "System.NullReferenceException",
    "id": "19200546"
  }
]

Closing comment (2021-06-27T07:29:44Z): Duplicate of #624 -- since #624 will get auto-updates, closing this one.