From 18c5ee57d65670121958e266f948a119a5b926a7 Mon Sep 17 00:00:00 2001 From: Mukul Sabharwal Date: Thu, 2 Apr 2020 13:18:24 -0700 Subject: [PATCH] Extra null check --- CoreCLRProfiler/native/Microsoft.BPerf.CoreCLRProfiler.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CoreCLRProfiler/native/Microsoft.BPerf.CoreCLRProfiler.cpp b/CoreCLRProfiler/native/Microsoft.BPerf.CoreCLRProfiler.cpp index c99868f..4465c6f 100644 --- a/CoreCLRProfiler/native/Microsoft.BPerf.CoreCLRProfiler.cpp +++ b/CoreCLRProfiler/native/Microsoft.BPerf.CoreCLRProfiler.cpp @@ -54,11 +54,6 @@ extern "C" size_t GetCurrentNumberOfMetadataMethodsJitted() return 0; } - if (ProfilerInstance == nullptr) - { - return 0; - } - return ProfilerInstance->GetCurrentNumberOfMetadataMethodsJitted(); }