summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorFadi Hanna <fadim@microsoft.com>2019-04-15 16:25:16 -0700
committerJan Kotas <jkotas@microsoft.com>2019-04-15 16:25:16 -0700
commitee41ee41bcf5f6c1d77a261fa7cae469475b268a (patch)
treea28805b27c6a1378495a24beb1bbb9b602bbd1e2 /src/zap
parenta49cc4ad01b51b26165c371579be763c5ccc30f5 (diff)
downloadcoreclr-ee41ee41bcf5f6c1d77a261fa7cae469475b268a.tar.gz
coreclr-ee41ee41bcf5f6c1d77a261fa7cae469475b268a.tar.bz2
coreclr-ee41ee41bcf5f6c1d77a261fa7cae469475b268a.zip
Check for null methodhandle before checking if the method is in the same version bubble (#23940)
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zap/zapinfo.cpp b/src/zap/zapinfo.cpp
index 066eb39382..21ce5f558d 100644
--- a/src/zap/zapinfo.cpp
+++ b/src/zap/zapinfo.cpp
@@ -3864,7 +3864,7 @@ BOOL ZapInfo::pInvokeMarshalingRequired(CORINFO_METHOD_HANDLE method,
return TRUE;
#endif
- if (IsReadyToRunCompilation() && !m_pImage->GetCompileInfo()->IsInCurrentVersionBubble(m_pEEJitInfo->getMethodModule(method)))
+ if (IsReadyToRunCompilation() && method != NULL && !m_pImage->GetCompileInfo()->IsInCurrentVersionBubble(m_pEEJitInfo->getMethodModule(method)))
{
// FUTURE: ZapSig::EncodeMethod does not yet handle cross module references for ReadyToRun
// See zapsig.cpp around line 1217.