diff --git a/src/VisualStudio/Core/Def/Implementation/EditAndContinue/VsENCRebuildableProjectImpl.cs b/src/VisualStudio/Core/Def/Implementation/EditAndContinue/VsENCRebuildableProjectImpl.cs index 4d69651c141a4b32d0bef78585caea0990785f8f..7bf9428808e87b492287e7a20c6c073daed687c5 100644 --- a/src/VisualStudio/Core/Def/Implementation/EditAndContinue/VsENCRebuildableProjectImpl.cs +++ b/src/VisualStudio/Core/Def/Implementation/EditAndContinue/VsENCRebuildableProjectImpl.cs @@ -1174,7 +1174,9 @@ private StandaloneSignatureHandle GetBaselineLocalSignature(MethodDefinitionHand Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.MTA); var symMethod = (ISymUnmanagedMethod2)_pdbReader.Value.GetMethodByVersion(MetadataTokens.GetToken(methodHandle), methodVersion: 1); - return MetadataTokens.StandaloneSignatureHandle(symMethod.GetLocalSignatureToken()); + + // Compiler generated methods (e.g. async kick-off methods) might not have debug information. + return symMethod == null ? default : MetadataTokens.StandaloneSignatureHandle(symMethod.GetLocalSignatureToken()); } ///