From df5cb91f76b03f7869d66cecf9ca08bd940fe115 Mon Sep 17 00:00:00 2001 From: fengyang Date: Thu, 26 Jun 2025 20:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=B0=8F=E6=A6=82=E7=8E=87=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengyang --- .../bundleactivecommon_fuzzer/bundleactivecommon_fuzzer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/fuzztest/bundleactivecommon_fuzzer/bundleactivecommon_fuzzer.cpp b/test/fuzztest/bundleactivecommon_fuzzer/bundleactivecommon_fuzzer.cpp index f8e3a53..b9f2530 100644 --- a/test/fuzztest/bundleactivecommon_fuzzer/bundleactivecommon_fuzzer.cpp +++ b/test/fuzztest/bundleactivecommon_fuzzer/bundleactivecommon_fuzzer.cpp @@ -143,6 +143,9 @@ namespace DeviceUsageStats { { DelayedSingleton::GetInstance()->GetBundleActiveProxy(); auto bundleActiveServiceProxy = DelayedSingleton::GetInstance()->bundleActiveProxy_; + if (bundleActiveServiceProxy == nullptr) { + return true; + } std::vector bundleActivePackageStats; int32_t intervalType = fdp->ConsumeIntegral(); int64_t beginTime = fdp->ConsumeIntegral(); -- Gitee