diff options
author | Brian Robbins <brianrob@microsoft.com> | 2017-05-23 16:11:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-23 16:11:44 -0700 |
commit | f0e21f4d46161edb7222b478af2b519fc808b9ad (patch) | |
tree | 87747843468c022232a3f87aa97feaff7652b1e5 | |
parent | 4229c5d7ea196c93dc8b76c8718929a2e4ff94ed (diff) | |
download | coreclr-f0e21f4d46161edb7222b478af2b519fc808b9ad.tar.gz coreclr-f0e21f4d46161edb7222b478af2b519fc808b9ad.tar.bz2 coreclr-f0e21f4d46161edb7222b478af2b519fc808b9ad.zip |
Return early if EventPipeBuffer is empty. (#11855)
-rw-r--r-- | src/vm/eventpipebuffer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/eventpipebuffer.cpp b/src/vm/eventpipebuffer.cpp index e0e9610800..ed1c5479bb 100644 --- a/src/vm/eventpipebuffer.cpp +++ b/src/vm/eventpipebuffer.cpp @@ -154,6 +154,10 @@ EventPipeEventInstance* EventPipeBuffer::GetNext(EventPipeEventInstance *pEvent, { pNextInstance = (EventPipeEventInstance*)m_pBuffer; } + else + { + return NULL; + } } else { |